/* Base Variables - Dark Theme Premium U-Secretary */
:root {
    --bg-dark: #0A0D14;
    --bg-panel: #141824;
    --bg-glass: rgba(20, 24, 36, 0.6);
    --bg-glass-hover: rgba(30, 36, 52, 0.8);
    
    --primary-color: #3b82f6; /* Modern Blue */
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary-color: #10b981; /* Accent Green */
    --accent-color: #8b5cf6; /* Accent Purple */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(59, 130, 246, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-panel-accent {
    background: linear-gradient(135deg, rgba(20, 24, 36, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

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

.brand-highlight {
    font-weight: 300;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-cta {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-cta:hover {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(10,13,20,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 1s ease forwards;
}

.hero-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
}

.search-container {
    margin-top: 32px;
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 8px;
    width: 100%;
    max-width: 500px;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 0 16px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Featured Section */
.featured-section {
    margin-bottom: 100px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    overflow: hidden;
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(10, 13, 20, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more-btn:hover {
    color: #60a5fa;
    gap: 12px;
}

/* Recent Posts Grid */
.recent-posts {
    margin-bottom: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    transition: var(--transition);
}

.view-all:hover {
    color: var(--text-main);
}

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

.post-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.post-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.post-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .post-img-wrapper img {
    transform: scale(1.08);
}

.post-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex: 1;
}

.card-read-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    transition: var(--transition);
}

.card-read-more i {
    color: var(--primary-color);
    transition: var(--transition);
}

.post-card:hover .card-read-more i {
    transform: translateX(5px);
}

/* CTA Section */
.platform-cta-section {
    margin-bottom: 100px;
}

.platform-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    align-items: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 8px 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Waveform Animation for CTA */
.waveform-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100px;
}

.waveform-anim span {
    display: block;
    width: 12px;
    background: linear-gradient(to top, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    animation: wave 1.2s ease-in-out infinite;
}

.waveform-anim span:nth-child(1) { height: 20%; animation-delay: 0.0s; }
.waveform-anim span:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.waveform-anim span:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.waveform-anim span:nth-child(4) { height: 100%; animation-delay: 0.3s; }
.waveform-anim span:nth-child(5) { height: 70%; animation-delay: 0.4s; }
.waveform-anim span:nth-child(6) { height: 40%; animation-delay: 0.5s; }
.waveform-anim span:nth-child(7) { height: 30%; animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Footer */
.footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .platform-cta {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    
    .cta-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none; /* Add JS toggle later */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Article Reader Page --- */
.article-reader-container {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 70vh;
}

#single-article .category-badge {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 16px;
    display: inline-block;
}

#single-article .article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
    line-height: 1.2;
}

#single-article .article-cover {
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-main);
    overflow: visible !important;
}

/* Override Quill editor borders for reading mode */
.ql-snow .article-content {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.5rem; }

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* --- Interaction Space --- */
.interaction-space {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.share-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    background: var(--bg-panel);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.share-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn-share.facebook { background: #1877F2; }
.btn-share.facebook:hover { box-shadow: 0 8px 16px rgba(24, 119, 242, 0.4); }

.btn-share.linkedin { background: #0A66C2; }
.btn-share.linkedin:hover { box-shadow: 0 8px 16px rgba(10, 102, 194, 0.4); }

.btn-share.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.btn-share.instagram:hover { box-shadow: 0 8px 16px rgba(220, 39, 67, 0.4); }

/* Comments Section */
.comments-section {
    margin-top: 2rem;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.comments-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form {
    background: var(--bg-panel);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input, .form-textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    display: flex;
    gap: 16px;
    background: var(--bg-panel);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.comment-text {
    color: var(--text-main);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .share-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
