/* DonutMods Design System & Custom Styling */
:root {
    --bg-main: #0a080d;
    --bg-surface: rgba(20, 16, 28, 0.6);
    --bg-surface-hover: rgba(30, 24, 42, 0.85);
    
    /* Harmonious Donut-Inspired Premium Gradient Palette */
    --clr-primary: #ff4fa8;      /* Vibrant Donut Frosting Pink */
    --clr-primary-glow: rgba(255, 79, 168, 0.35);
    --clr-secondary: #ffd15c;    /* Golden Glaze Yellow */
    --clr-secondary-glow: rgba(255, 209, 92, 0.25);
    --clr-accent: #bf5eff;       /* Sweet Sprinkle Purple */
    --clr-accent-glow: rgba(191, 94, 255, 0.3);
    
    /* Text colors */
    --txt-heading: #ffffff;
    --txt-body: #d1cbd9;
    --txt-muted: #8b8398;
    
    /* Borders and details */
    --border-glow: rgba(255, 79, 168, 0.15);
    --border-normal: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(16px);
    
    /* Transition speeds */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-primary) var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--txt-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 79, 168, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(191, 94, 255, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 209, 92, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 79, 168, 0.3);
    border-radius: 10px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary);
}

/* Navigation Bar (Glassmorphic & Sticky) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 6%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 8, 13, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-normal);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.9rem 6%;
    background: rgba(10, 8, 13, 0.9);
    border-bottom: 1px solid rgba(255, 79, 168, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--txt-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}


.logo span {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--clr-primary-glow));
}

/* Smooth search container */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-normal);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    width: 320px;
    transition: all var(--transition-smooth);
}

.search-container:focus-within {
    width: 380px;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--clr-primary);
    box-shadow: 0 0 20px rgba(255, 79, 168, 0.25);
}

#search-bar {
    background: transparent;
    border: none;
    color: var(--txt-heading);
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 400;
}

#search-bar::placeholder {
    color: var(--txt-muted);
}

.search-btn {
    background: transparent;
    border: none;
    color: var(--clr-primary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--txt-muted);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    transition: width var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--txt-heading);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--clr-primary);
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--clr-primary);
    filter: blur(140px);
    opacity: 0.15;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 850px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--txt-heading);
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--clr-primary) 20%, var(--clr-accent) 50%, var(--clr-secondary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(255, 79, 168, 0.3));
    display: inline-block;
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--txt-body);
    margin-bottom: 2.8rem;
    max-width: 680px;
    margin-inline: auto;
    font-weight: 300;
}

/* CTA Button with pulse/glow effects */
.cta-btn {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 25px var(--clr-primary-glow);
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 79, 168, 0.5), 0 0 15px rgba(191, 94, 255, 0.3);
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* main Layout / Mod Grid */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 2rem 8rem 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-normal);
    padding-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--txt-heading);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.6rem;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    border-radius: 2px;
}

/* Dynamic Filter Buttons */
.filters {
    display: flex;
    gap: 0.75rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-normal);
    color: var(--txt-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--txt-heading);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(255, 79, 168, 0.15) 0%, rgba(191, 94, 255, 0.15) 100%);
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    box-shadow: 0 0 15px rgba(255, 79, 168, 0.15);
}

/* Mod Grid System */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Premium Mod Card with Neon Glassmorphism & Hover FX */
.mod-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-normal);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    height: 480px;
    transition: all var(--transition-smooth);
    position: relative;
}

.mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 79, 168, 0.05) 0%, rgba(191, 94, 255, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.mod-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 79, 168, 0.35);
    background: var(--bg-surface-hover);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 79, 168, 0.1);
}

.mod-card:hover::before {
    opacity: 1;
}

/* Custom CSS illustrations/gradients as placeholder images */
.mod-image {
    height: 190px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-normal);
    transition: transform var(--transition-smooth);
}

.mod-card:hover .mod-image {
    transform: scale(1.03);
}

/* Design distinct background gradients for placeholder cards to look premium and customized */
.mod-card:nth-child(1) .mod-image {
    background: linear-gradient(135deg, #1e0b36 0%, #ff4fa8 100%);
}

.mod-card:nth-child(2) .mod-image {
    background: linear-gradient(135deg, #0f1c3f 0%, #bf5eff 100%);
}

.mod-card:nth-child(3) .mod-image {
    background: linear-gradient(135deg, #2c1a04 0%, #ffd15c 100%);
}

.mod-card:nth-child(4) .mod-image {
    background: linear-gradient(135deg, #092c24 0%, #00f5a0 100%);
}

/* Mod Preview Icon or Logo */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.placeholder-img::before {
    content: '🧱';
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 245, 160, 0.6));
    animation: float 4s ease-in-out infinite alternate;
}

.mod-card:nth-child(2) .placeholder-img::before { content: '🍩'; filter: drop-shadow(0 0 15px rgba(255, 79, 168, 0.6)); }
.mod-card:nth-child(3) .placeholder-img::before { content: '🎲'; filter: drop-shadow(0 0 15px rgba(255, 209, 92, 0.6)); }

.placeholder-img::after {
    content: 'DONUT SMP CERTIFIED';
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content within card */
.mod-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.mod-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--txt-heading);
    letter-spacing: -0.2px;
}

.version {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-primary);
    background: rgba(255, 79, 168, 0.1);
    border: 1px solid rgba(255, 79, 168, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.mod-desc {
    font-size: 0.95rem;
    color: var(--txt-body);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mod-tags {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-normal);
    color: var(--txt-muted);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.mod-card:hover .tag {
    border-color: rgba(255, 79, 168, 0.2);
    color: var(--clr-primary);
}

/* Mod Footer / Actions */
.mod-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-normal);
    margin-top: auto;
}

.download-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-normal);
    color: var(--txt-heading);
    padding: 0.6rem 1.3rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    text-decoration: none; /* Added to keep link clean and un-underlined */
}

.download-btn::after {
    content: '→';
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px var(--clr-primary-glow);
}

.download-btn:hover::after {
    transform: translateX(4px);
}

/* Premium Footer */
footer {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--txt-muted);
    border-top: 1px solid var(--border-normal);
    background: rgba(7, 5, 9, 0.85);
    position: relative;
    backdrop-filter: var(--glass-blur);
}

footer p {
    font-size: 0.95rem;
    font-weight: 400;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    from {
        transform: translateY(0px) rotate(0deg);
    }
    to {
        transform: translateY(-8px) rotate(5deg);
    }
}

/* Robust Responsive Styles */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.25rem;
    }
    .mod-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 4%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-container:focus-within {
        width: 100%;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero {
        min-height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .container {
        padding: 1rem 1.5rem 5rem 1.5rem;
    }
    
    .mod-grid {
        grid-template-columns: 1fr;
    }
    
    .mod-card {
        height: auto;
        min-height: 440px;
    }
}

/* Recommended Client Banner */
.client-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 2.2rem 3rem;
    margin-bottom: 4rem;
    gap: 2.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-smooth);
}

.client-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 245, 160, 0.03) 0%, rgba(191, 94, 255, 0.03) 100%);
    pointer-events: none;
}

.client-banner:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(0, 245, 160, 0.05);
    transform: translateY(-2px);
}

.client-banner-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(0, 245, 160, 0.4));
    animation: float 5s ease-in-out infinite alternate;
}

.client-banner-info {
    flex-grow: 1;
}

.client-banner-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--txt-heading);
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.highlight-feather {
    background: linear-gradient(135deg, #00f5a0 0%, #00d9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 245, 160, 0.2));
}

.client-banner-info p {
    font-size: 1.05rem;
    color: var(--txt-body);
    line-height: 1.5;
    max-width: 720px;
}

.client-download-btn {
    background: linear-gradient(135deg, #00f5a0 0%, #00d9ff 100%);
    color: #050508;
    padding: 0.95rem 2.2rem;
    border-radius: 35px;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 245, 160, 0.25);
}

.client-download-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 10px 25px rgba(0, 245, 160, 0.45),
        0 0 15px rgba(0, 217, 255, 0.25);
}

.client-download-btn:active {
    transform: translateY(-1px);
}

/* Adjust Responsive styling for Recommended Client Banner */
@media (max-width: 992px) {
    .client-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem 2rem;
        gap: 1.5rem;
    }
    
    .client-banner-info p {
        margin-inline: auto;
    }
    
    .client-download-btn {
        width: 100%;
        text-align: center;
    }
}
