/* Project Genesis - Futuristic Dark Theme Styles */

:root {
    /* Color Palette */
    --primary-color: #00d4ff;
    --secondary-color: #ff6b35;
    --accent-color: #7c3aed;
    --background-dark: #0a0a0a;
    --background-card: #1a1a1a;
    --background-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #333333;
    --glow-color: rgba(0, 212, 255, 0.3);
    
    /* Typography */
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --card-padding: 2rem;
    
    /* Shadows */
    --shadow-primary: 0 10px 30px rgba(0, 212, 255, 0.1);
    --shadow-secondary: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--glow-color);
}

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

body {
    background: var(--background-dark);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Navigation */
.futuristic-nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.futuristic-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.8rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px var(--glow-color);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    background: var(--background-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px var(--glow-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 30px var(--glow-color));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.futuristic-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.futuristic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.futuristic-btn:hover::before {
    left: 100%;
}

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

.futuristic-btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.futuristic-btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.futuristic-btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Cards */
.futuristic-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.futuristic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futuristic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

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

/* Blog Cards */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-title a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

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

.blog-description {
    color: var(--text-secondary);
    flex: 1;
    margin: 1rem 0;
}

.blog-actions {
    margin-top: auto;
}

/* Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Sections */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* Blog Post Page */
.post-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--background-gradient);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8), rgba(26, 26, 26, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.post-header {
    color: white;
}

.post-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.post-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.medium-preview-card .card-header {
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.medium-preview-card .card-body {
    padding: 1.5rem;
}

.post-tags .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-share {
    text-align: center;
}

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

.share-btn {
    min-width: 120px;
}

/* Statistics Section */
.stats-section {
    background: rgba(0, 0, 0, 0.3);
}

.stat-card {
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.futuristic-footer {
    background: var(--background-card);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

/* Alerts */
.futuristic-alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Empty States */
.empty-state {
    color: var(--text-muted);
}

.empty-state i {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Development Tools */
.dev-section {
    background: rgba(0, 0, 0, 0.2);
}

.dev-tools {
    background: var(--background-card);
    border: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--background-dark);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--background-dark);
}
