/* Imports for Modular Header Styles */
@import 'header-desktop.css';
@import 'header-mobile.css';

/* Base Styles */
:root {
    /* Apple-style Non-linear Animation Variables */
    --apple-ease: cubic-bezier(0.25, 0.1, 0.25, 1.0);
    --spring-ease: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Light Mode Colors - Liquid Glass */
    --text-color-light: #1d1d1f; /* SF Text */
    --text-color-secondary-light: #86868b; /* SF Secondary Text */
    --bg-color-light: #fbfbfd; /* Apple off-white background */
    --nav-bg-light: rgba(251, 251, 253, 0.72); /* High transparency for glass */
    --card-bg-light: rgba(255, 255, 255, 0.65); /* Glass card background */
    --card-border-light: rgba(255, 255, 255, 0.4); /* Inner glass border */
    --glass-border-light: rgba(0, 0, 0, 0.05); /* Outer boundary */
    
    /* Dark Mode Colors - Liquid Glass */
    --text-color-dark: #f5f5f7;
    --text-color-secondary-dark: #86868b;
    --bg-color-dark: #000000; /* Pure black for depth */
    --nav-bg-dark: rgba(22, 22, 23, 0.72);
    --card-bg-dark: rgba(28, 28, 30, 0.65);
    --card-border-dark: rgba(255, 255, 255, 0.1);
    --glass-border-dark: rgba(255, 255, 255, 0.08);

    /* Shadows - Soft & Diffused */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.12);
    
    /* Dark Mode Shadows */
    --shadow-sm-dark: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md-dark: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg-dark: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-hover-dark: 0 24px 60px rgba(0, 0, 0, 0.7);

    /* Optimized Colors */
    --blue-600: #0071e3; /* Apple Blue */
    --blue-700: #0077ed;
    --green-500: #34c759; /* Apple Green */
    --purple-500: #af52de; /* Apple Purple */
    --red-500: #ff3b30; /* Apple Red */
    --yellow-500: #ffcc00; /* Apple Yellow */
    --orange-500: #ff9500; /* Apple Orange */
    
    /* Component Variables */
    --hover-bg-light: rgba(0, 0, 0, 0.05);
    --hover-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(0, 0, 0, 0.1);
    --border-color-dark: rgba(255, 255, 255, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s var(--apple-ease);
}

body.dark {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Navbar - Liquid Glass */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--nav-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border-light);
    transition: background-color 0.5s var(--apple-ease), border-color 0.5s var(--apple-ease);
}

body.dark nav {
    background-color: var(--nav-bg-dark);
    border-bottom: 1px solid var(--glass-border-dark);
}

nav .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .text-2xl {
    font-size: 1.375rem; /* Slightly smaller, more refined */
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color-light);
}
body.dark nav .text-2xl {
    color: var(--text-color-dark);
}

nav .space-x-6 > * + * {
    margin-left: 1.5rem;
}

nav button {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--text-color-secondary-light);
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s var(--apple-ease);
}
body.dark nav button {
    color: var(--text-color-secondary-dark);
}
nav button:hover {
    color: var(--text-color-light);
    background-color: var(--hover-bg-light);
}
body.dark nav button:hover {
    color: var(--text-color-dark);
    background-color: var(--hover-bg-dark);
}
nav button.active {
    font-weight: 500;
    color: var(--text-color-light);
}
body.dark nav button.active {
    color: var(--text-color-dark);
}

/* 留言板按钮样式 */
nav button#feedback-nav-btn {
    background: none;
    border: none;
    /* padding: 0.5rem 0.75rem; Keep consistent padding */
    color: var(--text-color-secondary-light);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s var(--apple-ease);
}
nav button#feedback-nav-btn:hover {
    color: var(--text-color-light);
    background-color: var(--hover-bg-light);
}
body.dark nav button#feedback-nav-btn { color: var(--text-color-secondary-dark); }

/* Language Selector - Apple Style */
nav select {
    display: block;
    appearance: none;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    color: var(--text-color-light);
    padding: 0.4rem 0.75rem;
    padding-right: 2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.25;
    outline: none;
    cursor: pointer;
    transition: all 0.2s var(--apple-ease);
}
body.dark nav select {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-dark);
}
nav select:hover {
    background-color: rgba(0, 0, 0, 0.08);
}
body.dark nav select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
nav select:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
}

nav .pointer-events-none {
    pointer-events: none;
    position: absolute;
    inset-y: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    color: var(--text-color-secondary-light);
}
body.dark nav .pointer-events-none {
    color: var(--text-color-secondary-dark);
}

/* Mobile Navbar Adjustments */
@media (max-width: 767px) {
    nav .container {
        padding-left: 1rem;
        padding-right: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav .text-2xl {
        font-size: 1.25rem;
    }

    nav .flex.items-center.space-x-6 {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav button {
        font-size: 0.8125rem;
        padding: 0.35rem 0.6rem;
        flex: 1;
        min-width: auto;
        white-space: nowrap;
    }

    nav .relative {
        width: 100%;
        max-width: none;
        margin-top: 0.5rem;
    }
}

/* Main Content */
main {
    flex-grow: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px) {
    .hero-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700; /* SF Pro Display Bold */
    letter-spacing: -0.03em;
    color: var(--text-color-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color-light) 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.dark .hero-section h1 {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 5rem;
    }
}

.hero-section p {
    font-size: 1.35rem;
    color: var(--text-color-secondary-light);
    margin-bottom: 3rem;
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
}
body.dark .hero-section p {
    color: var(--text-color-secondary-dark);
}
@media (min-width: 768px) {
    .hero-section p {
        font-size: 1.6rem;
    }
}

/* Apple Style Button */
.apple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border: 1px solid transparent;
    font-size: 1.0625rem;
    font-weight: 500;
    border-radius: 980px; /* Capsule */
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    color: white;
    background: var(--blue-600);
    transition: all 0.3s var(--apple-ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.apple-button::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}
.apple-button:hover {
    background: var(--blue-700);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.4);
}
body.dark .apple-button:hover {
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.5);
}
.apple-button:active {
    transform: scale(0.98);
}
.apple-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.3);
}

/* Screenshot Container - Glass Effect */
.screenshot-container {
    margin-top: 4rem;
    position: relative;
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-color-light);
    background-color: var(--bg-color-light);
    transform: perspective(1000px) rotateX(2deg) scale(0.98);
    transition: transform 0.8s var(--apple-ease), box-shadow 0.8s var(--apple-ease);
}
.screenshot-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1);
    box-shadow: var(--shadow-hover);
}
body.dark .screenshot-container {
    border-color: var(--border-color-dark);
    background-color: var(--bg-color-dark);
    box-shadow: var(--shadow-lg-dark);
}
body.dark .screenshot-container:hover {
    box-shadow: var(--shadow-hover-dark);
}
@media (min-width: 768px) {
    .screenshot-container {
        margin-top: 6rem;
    }
}

.screenshot-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0; /* Container handles radius */
}

.screenshot-controls {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}
.screenshot-controls span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

/* Sections */
.features-section, .browse-resources-section, .about-section, .content-overview-section, .more-resources-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
@media (min-width: 768px) {
    .features-section, .browse-resources-section, .about-section, .content-overview-section, .more-resources-section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-color-light);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}
body.dark .section-title {
    color: var(--text-color-dark);
}
@media (min-width: 768px) {
    .section-title {
        font-size: 3.5rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Glassmorphism Card Style */
.feature-card {
    background-color: var(--card-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border-light);
    transition: all 0.5s var(--apple-ease);
    position: relative;
    overflow: hidden;
}
body.dark .feature-card {
    background-color: var(--card-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: var(--shadow-sm-dark);
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 113, 227, 0.2); /* Subtle blue tint on hover */
}
body.dark .feature-card:hover {
    box-shadow: var(--shadow-hover-dark);
}

.feature-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.feature-icon-wrapper svg {
    width: 2.25rem;
    height: 2.25rem;
    color: white;
}
/* Enhanced Gradients for Icons */
.feature-icon-blue { background: linear-gradient(135deg, #4da0ff 0%, #0071e3 100%); }
.feature-icon-green { background: linear-gradient(135deg, #6cdf88 0%, #34c759 100%); }
.feature-icon-purple { background: linear-gradient(135deg, #d389ff 0%, #af52de 100%); }
.feature-icon-orange { background: linear-gradient(135deg, #ffb340 0%, #ff9500 100%); }


.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-light);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
body.dark .feature-card h3 {
    color: var(--text-color-dark);
}

.feature-card p {
    color: var(--text-color-secondary-light);
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}
body.dark .feature-card p {
    color: var(--text-color-secondary-dark);
}

/* Content Overview Section Specific */
.content-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 96rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .content-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .content-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1280px) {
    .content-overview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1536px) {
    .content-overview-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}


.overview-card {
    background-color: var(--card-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border-light);
    transition: all 0.5s var(--apple-ease);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
body.dark .overview-card {
    background-color: var(--card-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: var(--shadow-sm-dark);
}
.overview-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}


.overview-category .emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15)); /* Add depth to emoji */
}
.overview-category h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
body.dark .overview-category h3 {
    color: var(--text-color-dark);
}
.overview-category p {
    color: var(--text-color-secondary-light);
    font-size: 1.0625rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
body.dark .overview-category p {
    color: var(--text-color-secondary-dark);
}

.overview-category .nested-items {
    margin-top: auto; /* Push to bottom */
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-light);
    width: 100%;
}
body.dark .overview-category .nested-items {
    border-color: var(--border-color-dark);
}
.overview-category .nested-items h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color-secondary-light);
    margin-bottom: 1rem;
    text-align: center;
}
body.dark .overview-category .nested-items h4 {
    color: var(--text-color-secondary-dark);
}
.overview-category .nested-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}
.overview-category .nested-items li {
    font-size: 0.85rem;
    color: var(--text-color-secondary-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s var(--apple-ease);
}
body.dark .overview-category .nested-items li {
    color: var(--text-color-secondary-dark);
    background-color: rgba(255, 255, 255, 0.05);
}
.overview-category .nested-items li:hover {
    background-color: rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
body.dark .overview-category .nested-items li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.overview-category .nested-items li .emoji {
    font-size: 1.25rem;
    margin-right: 0;
    margin-bottom: 0.25rem;
    display: block;
    line-height: 1;
    filter: none; /* No shadow for small emojis */
}


/* Browse Resources Section */
.resource-tree-container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--card-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border-light);
    padding: 2.5rem;
}
body.dark .resource-tree-container {
    background-color: var(--card-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: var(--shadow-md-dark);
}

.resource-item {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    color: var(--text-color-secondary-light);
}
body.dark .resource-item {
    color: var(--text-color-secondary-dark);
}

.resource-item-row {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: background-color 0.2s var(--apple-ease);
}
.resource-item-row:hover {
    background-color: rgba(0, 113, 227, 0.08); /* Apple Blue tint */
    color: var(--blue-600);
}
body.dark .resource-item-row:hover {
    background-color: rgba(10, 132, 255, 0.15);
    color: #fff;
}

.resource-item-row svg {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.75rem;
    color: currentColor;
    transition: transform 0.3s var(--apple-ease);
    opacity: 0.7;
}
.resource-item-row:hover svg {
    opacity: 1;
}

.resource-item-row .folder-icon.expanded {
    transform: rotate(90deg);
}

.resource-item-row .flex-grow {
    flex-grow: 1;
    font-weight: 500;
}

.resource-item-row button.link-icon {
    margin-left: auto;
    color: var(--blue-600);
    font-size: 0.875rem;
    padding: 0.4rem;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--apple-ease);
}
.resource-item-row button.link-icon:hover {
    background: var(--blue-600);
    color: white;
    transform: scale(1.1);
}
body.dark .resource-item-row button.link-icon {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.2);
}
body.dark .resource-item-row button.link-icon:hover {
    background: #60a5fa;
    color: white;
}

.resource-children {
    margin-left: 1.25rem;
    border-left: 1px solid var(--border-color-light);
    padding-left: 0.25rem;
}
body.dark .resource-children {
    border-color: var(--border-color-dark);
}

/* About Page Specific */
.about-section {
    text-align: center;
}
.about-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}
body.dark .about-section h1 {
    color: var(--text-color-dark);
}
@media (min-width: 768px) {
    .about-section h1 {
        font-size: 4rem;
    }
}

.about-section .content-container {
    font-size: 1.125rem;
    color: var(--text-color-secondary-light);
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-align: left;
}
body.dark .about-section .content-container {
    color: var(--text-color-secondary-dark);
}
@media (min-width: 768px) {
    .about-section .content-container {
        font-size: 1.25rem;
    }
}

.about-section .content-container h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-top: 4rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.01em;
}
body.dark .about-section .content-container h2 {
    color: var(--text-color-dark);
}

.about-section .content-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
body.dark .about-section .content-container h3 {
    color: var(--text-color-dark);
}

.about-section .content-container p {
    margin-bottom: 1.5rem;
}

.about-section .content-container a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 113, 227, 0.3);
    transition: all 0.2s var(--apple-ease);
}
.about-section .content-container a:hover {
    color: var(--blue-700);
    border-bottom-color: var(--blue-700);
    background-color: rgba(0, 113, 227, 0.05);
    border-radius: 4px;
}

.about-section .content-container hr {
    border: none;
    border-top: 1px solid var(--border-color-light);
    margin: 4rem 0;
}
body.dark .about-section .content-container hr {
    border-color: var(--border-color-dark);
}

.about-section .content-container img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* More Resources Page Specific */
.more-resources-section {
    text-align: center;
}
.more-resources-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}
body.dark .more-resources-section h1 {
    color: var(--text-color-dark);
}
.more-resources-section .total-size {
    font-size: 1.25rem;
    color: var(--text-color-secondary-light);
    margin-bottom: 3rem;
    font-weight: 500;
    background: rgba(0,0,0,0.05);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}
body.dark .more-resources-section .total-size {
    color: var(--text-color-secondary-dark);
    background: rgba(255,255,255,0.1);
}

.resource-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .resource-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}
@media (min-width: 1280px) {
    .resource-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.resource-card-domestic {
    background-color: var(--card-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border-light);
    transition: all 0.5s var(--apple-ease);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
body.dark .resource-card-domestic {
    background-color: var(--card-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: var(--shadow-sm-dark);
}
.resource-card-domestic:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.resource-card-domestic h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
body.dark .resource-card-domestic h4 {
    color: var(--text-color-dark);
}

.resource-card-domestic p {
    font-size: 0.95rem;
    color: var(--text-color-secondary-light);
    margin-bottom: 1rem;
}
body.dark .resource-card-domestic p {
    color: var(--text-color-secondary-dark);
}

.resource-card-domestic .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto; /* Push to bottom */
    width: 100%;
    justify-content: flex-start;
}

.resource-card-domestic .action-button {
    padding: 0.6rem 1.1rem;
    border-radius: 980px; /* Capsule */
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--apple-ease);
    white-space: nowrap;
    border: none;
}

.resource-card-domestic .action-button.link {
    background-color: var(--blue-600);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3);
}
.resource-card-domestic .action-button.link:hover {
    background-color: var(--blue-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.4);
}

.resource-card-domestic .action-button.extract-code {
    background-color: rgba(0,0,0,0.05);
    color: var(--text-color-light);
    border: 1px solid transparent;
}
body.dark .resource-card-domestic .action-button.extract-code {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-color-dark);
}
.resource-card-domestic .action-button.extract-code:hover {
    background-color: rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
body.dark .resource-card-domestic .action-button.extract-code:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Footer */
footer {
    background-color: var(--bg-color-light); /* Match body bg */
    border-top: 1px solid var(--border-color-light);
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
    color: var(--text-color-secondary-light);
    font-size: 0.875rem;
}
body.dark footer {
    background-color: var(--bg-color-dark);
    border-color: var(--border-color-dark);
    color: var(--text-color-secondary-dark);
}

/* My Websites section */
.my-websites {
    margin-top: 1.5rem;
    padding-top: 0;
}

.my-websites-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color-secondary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

body.dark .my-websites-title {
    color: var(--text-color-secondary-dark);
}

.website-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.website-links li {
    margin: 0;
    text-align: center;
}

.website-links a {
    color: var(--text-color-secondary-light);
    text-decoration: none;
    transition: color 0.2s var(--apple-ease);
    font-size: 0.9rem;
}

body.dark .website-links a {
    color: var(--text-color-secondary-dark);
}

.website-links a:hover {
    color: var(--blue-600);
}

body.dark .website-links a:hover {
    color: #60a5fa;
}

/* Responsive design for website links */
@media (max-width: 768px) {
    .website-links {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .my-websites {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Animations - Non-linear */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 1s var(--spring-ease) forwards;
}

/* Staggered animation delay for children (requires JS or nth-child CSS) */
/* Simplified approach for major sections */
.features-grid > *:nth-child(1) { animation-delay: 0.1s; }
.features-grid > *:nth-child(2) { animation-delay: 0.2s; }
.features-grid > *:nth-child(3) { animation-delay: 0.3s; }
.features-grid > *:nth-child(4) { animation-delay: 0.4s; }

.content-overview-grid > *:nth-child(1) { animation-delay: 0.1s; }
.content-overview-grid > *:nth-child(2) { animation-delay: 0.2s; }
.content-overview-grid > *:nth-child(3) { animation-delay: 0.3s; }
.content-overview-grid > *:nth-child(4) { animation-delay: 0.4s; }
.content-overview-grid > *:nth-child(5) { animation-delay: 0.5s; }


/* Feedback page improvements */
.feedback-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background-color: var(--card-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border-light);
}
body.dark .feedback-container {
    background-color: var(--card-bg-dark);
    border-color: var(--glass-border-dark);
    box-shadow: var(--shadow-lg-dark);
}
.feedback-content {
    display: block;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}
.feedback-instructions h3 { 
    margin-bottom: 1rem; 
    font-weight: 600;
}
.feedback-instructions p { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    color: var(--text-color-secondary-light); 
}
body.dark .feedback-instructions p { color: var(--text-color-secondary-dark); }

.feedback-instructions .bg-blue-50 {
    background-color: rgba(0, 113, 227, 0.05) !important;
    border-radius: 16px;
}
body.dark .feedback-instructions .bg-blue-50 {
    background-color: rgba(10, 132, 255, 0.1) !important;
}

.feedback-comments {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color-light);
}
body.dark .feedback-comments {
    border-top-color: var(--border-color-dark);
}

@media (min-width: 1200px) {
    .feedback-container { padding: 4rem; }
    .feedback-container h1 { font-size: 2.5rem; }
}
