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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0e1a;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1729 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 1rem 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s;
}

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

.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-welcome {
    color: #3b82f6;
    font-weight: 600;
}

.btn-login, .btn-logout {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-login:hover, .btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-logout {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: #a0aec0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button {
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.cta-secondary {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.cta-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
}

/* Stats Section */
.stats {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: rgba(26, 31, 53, 0.5);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #a0aec0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Features Section */
.features-section {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-header p {
    font-size: 1.2rem;
    color: #a0aec0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
}

.feature-card p {
    color: #a0aec0;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
}

/* Member Benefits */
.member-benefits {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: none;
}

.member-benefits.active {
    display: block;
    animation: fadeInUp 0.8s ease;
}

.member-benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.benefit-item {
    background: rgba(26, 31, 53, 0.5);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.benefit-item h4 {
    color: #22d3ee;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cta-section p {
    font-size: 1.3rem;
    color: #a0aec0;
    margin-bottom: 2.5rem;
}

/* Email Signup Footer */
.email-signup-footer {
    max-width: 600px;
    margin: 2rem auto 0;
}

.email-signup-footer form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-signup-footer input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: rgba(26, 31, 53, 0.5);
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.email-signup-footer input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-signup-footer button {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.email-signup-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Email Popup */
.email-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    background: linear-gradient(135deg, #1a1f35, #0f1729);
    padding: 3rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: #ffffff;
}

.popup-content h3 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.popup-content p {
    color: #a0aec0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.popup-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-content input[type="email"] {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: rgba(26, 31, 53, 0.5);
    color: #e0e0e0;
    font-size: 1rem;
}

.popup-content input[type="email"]:focus {
    outline: none;
    border-color: #3b82f6;
}

.popup-content button {
    padding: 1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.popup-disclaimer {
    font-size: 0.9rem !important;
    color: #718096 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Footer */
footer {
    max-width: 1400px;
    margin: 4rem auto 2rem;
    padding: 3rem 2rem;
    text-align: center;
    color: #a0aec0;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* Article Styles */
.article-list {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.article-card {
    background: rgba(26, 31, 53, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

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

.article-card-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.article-category {
    color: #3b82f6;
    font-weight: 600;
}

.article-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-card p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-read-more {
    color: #3b82f6;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.article-read-more:after {
    content: '→';
    transition: transform 0.3s;
}

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

/* Individual Article */
.article-content {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.article-header {
    margin-bottom: 3rem;
}

.article-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-info {
    display: flex;
    gap: 2rem;
    color: #a0aec0;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.article-body {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    color: #ffffff;
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.article-body h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

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

.article-body a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    transition: border-color 0.3s;
}

.article-body a:hover {
    border-color: #3b82f6;
}

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

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

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
}

.admin-form {
    background: rgba(26, 31, 53, 0.5);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    background: rgba(10, 14, 26, 0.5);
    color: #e0e0e0;
    font-size: 1rem;
    font-family: inherit;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.admin-table {
    width: 100%;
    background: rgba(26, 31, 53, 0.5);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(59, 130, 246, 0.1);
    color: #ffffff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    color: #e0e0e0;
}

.admin-table tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

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

    .article-title {
        font-size: 2rem;
    }

    .email-signup-footer form {
        flex-direction: column;
    }

    .email-signup-footer input[type="email"] {
        width: 100%;
    }
}
