/**
 * MewX Homepage v4 - Common Framework Styles
 * Shared styles across all v4 pages
 */

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

:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #64B5F6;
    --accent: #03A9F4;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f0f9ff;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1);
}

body {
    font-family: 'Lora', 'Georgia', 'Times New Roman', serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Merriweather', serif;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 5rem 2rem 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1.25rem 0;
    display: block;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 1rem;
    background: rgba(33, 150, 243, 0.05);
}

.mobile-nav-link:hover::before {
    width: 100%;
}

.mobile-nav-links li:first-child .mobile-nav-link {
    border-top: 1px solid #e2e8f0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    color: white;
    padding: 4rem 2rem 2.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.375rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.copy-left {
    display: inline-block;
    transform: scaleX(-1);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-text a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: white;
}

/* Page Container */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Page Header Section */
.page-header-section {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header-section h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-header-section p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Content Section Block */
.content-section-block {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.section-title {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0;
}

.section-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Content List */
.content-list {
    display: grid;
    gap: 1rem;
}

.list-item {
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.list-item:hover {
    background: white;
    border-left-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.list-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.list-item-meta {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-light);
    min-width: 100px;
    flex-shrink: 0;
}

.list-item-title {
    font-family: 'Lora', serif;
    font-size: 1.0625rem;
    color: var(--text-dark);
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.list-item:hover .list-item-title {
    color: var(--primary);
}

/* Card List */
.card-list {
    display: grid;
    gap: 1.5rem;
}

.card-item {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.card-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    background: white;
}

.card-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-item-title {
    font-family: 'Merriweather', serif;
    font-size: 1.375rem;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s ease;
}

.card-item:hover .card-item-title {
    color: var(--primary);
}

.card-item-icon {
    display: inline-block;
    margin-right: 0.75rem;
    color: var(--primary);
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-container {
        padding: 3rem 2rem;
    }

    .page-header-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .list-item-link {
        flex-direction: column;
        gap: 0.5rem;
    }

    .list-item-meta {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .page-container {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .list-item {
        padding: 1rem;
    }

    .list-item-title {
        font-size: 1rem;
    }

    .card-item {
        padding: 1.25rem 1.5rem;
    }

    .card-item-title {
        font-size: 1.25rem;
    }
}
