/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.primary-btn, .secondary-btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.primary-btn {
    background: white;
    color: var(--primary-color);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Search Section */
.search-section {
    background: var(--card-bg);
    padding: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 2rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.category-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.prompt-card {
    background: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.prompt-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prompt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-credit {
    position: absolute;
    bottom: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    margin: 0;
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.prompt-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e0e7ff;
    color: var(--primary-color);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.prompt-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    padding: 0 1.5rem;
}

.prompt-content {
    background: var(--bg-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
    margin: 0 1.5rem 1rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-height: 150px;
    overflow-y: auto;
}

.prompt-actions {
    display: flex;
    padding: 0 1.5rem 1.5rem 1.5rem;
    gap: 0.75rem;
}

.copy-btn, .view-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.view-btn {
    background: var(--bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification i {
    font-size: 1.25rem;
}

/* About Section */
.about-section {
    background: var(--card-bg);
    padding: 4rem 0;
}

.about-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    text-align: center;
    padding: 2rem;
}

.about-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* How To Section */
.howto-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.howto-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
}

/* Contribute Section */
.contribute-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.contribute-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contribute-section > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button i {
    margin-right: 0.5rem;
}

/* GitHub Buttons Container */
.github-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* GitHub Star Button Wrapper */
.github-button {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .github-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

.contribute-info {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contribute-info strong {
    font-size: 1.125rem;
}

.contribute-info ul {
    margin-top: 1rem;
    list-style-position: inside;
}

.contribute-info li {
    margin: 0.5rem 0;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-note {
    opacity: 0.8;
    margin-top: 0.5rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-right a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-right a:hover {
    opacity: 0.8;
}

.separator {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .nav {
        gap: 1rem;
    }

    .logo h1 {
        font-size: 1.125rem;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Language Selector Styles */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--border-color);
}

.lang-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn {
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Language Cards in Hero */
.language-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.lang-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.lang-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.lang-card.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lang-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive adjustments for language navigation */
@media (max-width: 768px) {
    .language-selector {
        display: none; /* Hide in mobile navigation */
    }

    .language-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lang-card {
        padding: 1.5rem 1rem;
    }

    .lang-card h3 {
        font-size: 1.25rem;
    }
}

/* Malay & Chinese Language Page Styles */
.prompt-card {
    padding: 1.5rem;
}

.prompt-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-content {
    background: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-height: 150px;
    overflow-y: auto;
    flex-grow: 1;
}

.prompt-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.copy-btn, .view-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: var(--secondary-color);
}

.view-btn {
    background: var(--bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.view-btn:hover {
    background: var(--primary-color);
    color: white;
}

.prompt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem auto;
    text-align: center;
    max-width: 1160px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem auto 1.5rem auto;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    max-width: 1160px;
}

.category-title + p {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.ai-model-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.info-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #856404;
    margin: 0;
}

/* Grid Section Headers */
.prompt-cards-grid h3 {
    grid-column: 1 / -1;
}

/* Section h3 headers alignment */
h3[style*="margin: 2rem"] {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

/* 2-Column Grid for specific sections */
.prompt-cards-grid.grid-2col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .prompt-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .prompt-cards-grid.grid-2col {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .prompt-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .prompt-cards-grid.grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ===== References Page Styles ===== */

.references-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.references-section:last-child {
    border-bottom: none;
}

.references-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.reference-category {
    background: var(--card-bg);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.reference-category:hover {
    box-shadow: var(--shadow-lg);
}

.reference-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reference-category h3 i {
    font-size: 1.75rem;
}

.reference-list {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: 1.25rem;
    margin: 1rem 0;
    background: var(--bg-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--secondary-color);
    transition: all 0.3s;
}

.reference-list li:hover {
    border-left-color: var(--primary-color);
    transform: translateX(4px);
}

.reference-list strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.reference-list p {
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem 0;
    line-height: 1.6;
}

.reference-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.reference-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Language-specific section styling */
.chinese-resources h2,
.malay-resources h2 {
    margin-top: 2rem;
}

/* Breadcrumb styling */
.breadcrumb {
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb i {
    margin-right: 0.25rem;
}

/* References page responsive design */
@media (max-width: 768px) {
    .references-section h2 {
        font-size: 1.5rem;
    }

    .reference-category {
        padding: 1.5rem;
    }

    .reference-category h3 {
        font-size: 1.25rem;
    }

    .reference-list li {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .reference-list strong {
        font-size: 1rem;
    }
}

/* ===== Nav Dropdown (CSS-only hover) ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 190px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* ===== Skills Page Hero ===== */
.skills-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 60%, #4c1d95 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.skills-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.skills-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 2rem;
}

.stats-chips {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-chip {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ===== Offline Badge ===== */
.offline-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== Ollama Model Cards ===== */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.model-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    border-top: 3px solid var(--primary-color);
    transition: box-shadow 0.2s;
}

.model-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.model-card .model-name {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.model-card .model-vendor {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.model-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Skill Category Grid ===== */
.skill-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.skill-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-card .skill-chinese {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skill-card .skill-slug {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.25rem;
}

/* ===== Skills.md Download Card ===== */
.skills-md-card {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 1px solid #a78bfa;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
}

.skills-md-card h3 {
    color: #5b21b6;
    margin-bottom: 0.75rem;
}

.skills-md-card code {
    display: block;
    background: #1e1b4b;
    color: #c4b5fd;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin: 1rem 0;
    overflow-x: auto;
    white-space: pre;
}

.btn-download {
    display: inline-block;
    background: #7c3aed;
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-download:hover {
    background: #5b21b6;
    color: white;
}

/* ===== Tool Workflow Steps ===== */
.tool-workflow-steps {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.tool-workflow-steps li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.tool-workflow-steps li:last-child {
    border-bottom: none;
}

.tool-workflow-steps li::before {
    content: counter(step-counter);
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.tool-workflow-steps li .step-content strong {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.tool-workflow-steps li .step-content code {
    background: var(--bg-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* ===== Featured Card ===== */
.featured-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 2px solid #a78bfa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.featured-card h3 {
    color: #5b21b6;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.featured-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

/* ===== Use-case cards ===== */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.usecase-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.usecase-card .usecase-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.usecase-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.usecase-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Skills page responsive ===== */
@media (max-width: 768px) {
    .skills-hero h2 {
        font-size: 1.5rem;
    }

    .skill-category-grid {
        grid-template-columns: 1fr;
    }

    .model-grid {
        grid-template-columns: 1fr 1fr;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .nav-dropdown-menu {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .model-grid {
        grid-template-columns: 1fr;
    }
}