/* Sonniss Home Page Styles - Dark Modern Theme */

/* Scroll Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-ready {
    opacity: 0;
}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Different animation delays for section children */
.animate-in .trusted-company,
.animate-in .category-card,
.animate-in .vendor-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-in .trusted-company:nth-child(n),
.animate-in .category-card:nth-child(n),
.animate-in .vendor-card:nth-child(n) {
    animation-delay: calc(n * 0.1s);
}


/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon i {
    font-size: 24px;
    color: #ffffff;
}

.feature-card__title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.sonniss-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(18,18,18,0.95) 100%), 
                      url('/wp-content/uploads/2025/04/Sound-Effects-Libraries-On-Sonniss.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

.sonniss-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.sonniss-hero__title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sonniss-hero__subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Search form in hero section */
.sonniss-hero__search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.sonniss-hero__search-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-align: center !important;
    display: block;
    -webkit-text-align: center;
    -moz-text-align: center;
    text-indent: 0 !important; /* Remove any text indentation */
    box-sizing: border-box; /* Ensure padding doesn't affect centering */
    text-transform: none; /* Prevent text transform from affecting appearance */
}

.sonniss-hero__search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.sonniss-hero__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: center !important;
}

/* Force text centering for all browsers */
.sonniss-hero__search-input::-webkit-input-placeholder {
    text-align: center !important;
}
.sonniss-hero__search-input::-moz-placeholder {
    text-align: center !important;
}
.sonniss-hero__search-input:-ms-input-placeholder {
    text-align: center !important;
}
.sonniss-hero__search-input:-moz-placeholder {
    text-align: center !important;
}

/* CTA and Search button */
.sonniss-hero__cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sonniss-hero__cta:hover,
.sonniss-hero__search-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.sonniss-hero__search-button {
    display: inline-flex;
    justify-content: center;
    cursor: pointer;
}

/* Featured Products Section */
.featured-products {
    padding: 6rem 2rem;
    background: #121212;
}

.featured-products__header {
    text-align: center;
    margin-bottom: 4rem;
}

.featured-products__title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-products__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.featured-products__grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* WooCommerce Products Grid Layout */
.featured-products .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Remove default WooCommerce margins and clear fixes */
.featured-products .woocommerce ul.products::before,
.featured-products .woocommerce ul.products::after {
    display: none !important;
}

.featured-products .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Responsive Layout */
@media (max-width: 1300px) {
    .featured-products .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Trusted By Section */
.trusted-by {
    padding: 5rem 2rem;
    background: #0a0a0a;
}

.trusted-by__header {
    text-align: center;
    margin-bottom: 3rem;
}

.trusted-by__title {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.trusted-by__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.trusted-company {
    flex: 0 1 200px;
    filter: grayscale(100%) brightness(0.8);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.trusted-company:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.trusted-company img {
    width: 100%;
    height: auto;
}

/* Categories Section */
.sound-categories {
    padding: 6rem 2rem;
    background-image: linear-gradient(180deg, rgba(18,18,18,0.97) 0%, rgba(18,18,18,0.97) 100%),
                      url('/wp-content/uploads/2025/04/Sound-Effects-On-Sonniss.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sound-categories__header {
    text-align: center;
    margin-bottom: 4rem;
}

.sound-categories__title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sound-categories__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.sound-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.category-card__image {
    width: 100%;
    height: 160px;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__image img {
    transform: scale(1.05);
}

.category-card__title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.category-card__description {
    margin: 0;
    color: #c1c1c1;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.category-card__count {
    margin: 0;
    color: #c9a376;
    font-size: 0.85em;
    font-weight: 500;
}

/* Featured Vendors Section */
.featured-vendors {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.featured-vendors__header {
    text-align: center;
    margin-bottom: 4rem;
}

.featured-vendors__title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.featured-vendors__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.featured-vendors__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.vendor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vendor-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.vendor-card__image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 60px;
    overflow: hidden;
}

.vendor-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vendor-card:hover .vendor-card__image img {
    transform: scale(1.05);
}

.vendor-card__title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.vendor-card__description {
    margin: 0;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.vendor-card__count {
    margin: 0;
    color: #c9a376;
    font-size: 0.85em;
    font-weight: 500;
}

/* Newest Libraries Section */
.newest-libraries {
    padding: 6rem 2rem;
    background: #121212;
}

.newest-libraries__header {
    text-align: center;
    margin-bottom: 4rem;
}

.newest-libraries__title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newest-libraries__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.newest-libraries__grid {
    max-width: 1400px;
    margin: 0 auto;
}

/* WooCommerce Products Grid Layout */
.newest-libraries .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Remove default WooCommerce margins and clear fixes */
.newest-libraries .woocommerce ul.products::before,
.newest-libraries .woocommerce ul.products::after {
    display: none !important;
}

.newest-libraries .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* Responsive Layout */
@media (max-width: 1300px) {
    .newest-libraries .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Promotional Banner */
.promo-banner {
    background-image: linear-gradient(45deg, rgba(26,26,26,0.95) 0%, rgba(42,42,42,0.95) 100%),
                      url('/wp-content/uploads/2025/04/Sound-Effects-Libraries-On-Sonniss-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.promo-banner__title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.promo-banner__description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.promo-banner__cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.promo-banner__cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .sonniss-hero__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .sonniss-hero__title {
        font-size: 2.5rem;
    }

    .sonniss-hero__subtitle {
        font-size: 1.25rem;
    }

    .featured-products__title,
    .sound-categories__title,
    .promo-banner__title {
        font-size: 2rem;
    }

    .trusted-company {
        flex: 0 1 150px;
    }
}

@media (max-width: 480px) {
    .sonniss-hero__title {
        font-size: 2rem;
    }

    .sonniss-hero__subtitle {
        font-size: 1.125rem;
    }

    .featured-products__title,
    .sound-categories__title,
    .promo-banner__title {
        font-size: 1.75rem;
    }
}
