:root {
    --bg-body: #0a0b10;
    --bg-card: #12141c;
    --bg-header: #0d0f16;
    --accent-blue: #007aff;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    --accent-green: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: #1e293b;
}

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

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.04;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: bgShift 25s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3%, 3%); }
}

/* Navigation */
nav {
    background: rgba(13, 15, 22, 0.98);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    min-height: 80px;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: -1.5px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    background: linear-gradient(135deg, #007aff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a:hover {
    color: var(--accent-blue);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 122, 255, 0.3);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-header);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: left 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list.active {
        left: 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .search-btn span {
        display: none;
    }
    
    .nav-container {
        padding: 0 20px;
    }
}

/* Article Container */
.article-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    font-size: 0.7rem;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.category-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-ios { background: linear-gradient(135deg, #667eea, #764ba2); }
.cat-ai { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cat-leaks { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cat-hardware { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cat-gaming { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.cat-tech { background: linear-gradient(135deg, #10b981, #06b6d4); }

.article-meta time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-excerpt {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Featured Image */
.featured-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 50px 0 20px;
}

.article-content h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 35px 0 15px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-blue);
    padding: 20px 30px;
    margin: 30px 0;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 8px;
    font-style: italic;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

.article-content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-bottom-color: var(--accent-blue);
}

/* Share Section */
.share-section {
    margin: 60px 0;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.share-section h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn.copy {
    background: var(--accent-purple);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Related Articles */
.related-articles {
    max-width: 1400px;
    margin: 100px auto 60px;
    padding: 0 40px;
}

.related-articles h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-content {
    padding: 20px;
}

.related-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background: var(--bg-header);
    padding: 60px 40px 35px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.footer-copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Search Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-header);
    padding: 40px;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close-modal {
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-primary);
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 20px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-container,
    .related-articles {
        padding: 0 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}
