@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
    /* Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --nav-bg: rgba(255, 255, 255, 0.8);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #334155;
    --card-bg: #1e293b;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --nav-bg: rgba(15, 23, 42, 0.8);
}

[data-theme="cyberpunk"] {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #00ff00; /* Matrix Green */
    --text-secondary: #00cc00;
    --accent: #ff00ff; /* Neon Pink */
    --accent-hover: #ff66ff;
    --border: #ff00ff;
    --card-bg: #000000;
    --shadow: 0 0 15px #ff00ff;
    --nav-bg: rgba(5, 5, 5, 0.9);
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
}

[data-theme="cyberpunk"] body {
    font-family: var(--font-mono);
    background-image: linear-gradient(rgba(255, 0, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 0, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

[data-theme="cyberpunk"] h1, 
[data-theme="cyberpunk"] h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
}

.theme-toggle {
    display: flex;
    gap: 0.5rem;
}

.btn-theme {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-theme:hover {
    background-color: var(--bg-secondary);
}

.btn-theme.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: white;
}

/* Features */
.features {
    padding: 5rem 0;
}

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

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

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Tool Section */
.tool-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

input[type="url"] {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.analyze-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Results Dashboard */
.results-dashboard {
    display: none;
    margin-top: 3rem;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
}

.progress-bar {
    height: 12px;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent);
    width: 0%;
    transition: width 1s ease-in-out;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 6px;
}

.status-good { background-color: #10b981; }
.status-warning { background-color: #f59e0b; }
.status-bad { background-color: #ef4444; }

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Cyberpunk Game */
#game-container {
    display: none;
    margin: 2rem auto;
    max-width: 800px;
    position: relative;
}

#gameCanvas {
    background-color: #000;
    border: 2px solid var(--accent);
    width: 100%;
    height: 200px;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    color: var(--text-primary);
}

/* Animations */
@keyframes glow {
    0% { text-shadow: 0 0 5px var(--accent); }
    50% { text-shadow: 0 0 20px var(--accent); }
    100% { text-shadow: 0 0 5px var(--accent); }
}

.glow-text {
    animation: glow 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .input-group {
        flex-direction: column;
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: var(--transition);
    z-index: 100;
}

/* Social Sharing */
.social-sharing {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent);
}

[data-theme="cyberpunk"] .social-icon {
    border-color: var(--accent);
    box-shadow: 0 0 5px var(--accent);
}

[data-theme="cyberpunk"] .social-icon:hover {
    box-shadow: 0 0 15px var(--accent);
}

.rss-icon {
    color: #f26522; /* RSS Orange */
}

.rss-icon:hover {
    background-color: #f26522;
    border-color: #f26522;
}

/* AI Response Styling */
#ai-response-view h1, #ai-response-view h2, #ai-response-view h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

#ai-response-view ul, #ai-response-view ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

#ai-response-view li {
    margin-bottom: 0.5rem;
}

#ai-response-view p {
    margin-bottom: 1rem;
}

#ai-response-view strong {
    color: var(--accent);
}

/* Article Sharing */
.article-share {
    margin: 3rem 0;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--bg-secondary);
}

.article-share h4 {
    margin-bottom: 1rem;
}
