/*
Theme Name: BrightSage Theme
Theme URI: https://brightsagehub.com
Author: BrightSage Hub
Author URI: https://brightsagehub.com
Description: Modern AI-focused WordPress theme with dark mode
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brightsage
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --secondary: #ff6b35;
    --accent: #ffd23f;
    --dark: #0a0e27;
    --dark-lighter: #151932;
    --dark-card: #1a1f3a;
    --text: #e8eaf6;
    --text-dim: #a0a4b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-mode {
    --dark: #f5f7fa;
    --dark-lighter: #ffffff;
    --dark-card: #ffffff;
    --text: #1a1f3a;
    --text-dim: #6b7280;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(100px);
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.bg-animation::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(100px);
    bottom: -150px;
    right: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

nav.main-nav {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.light-mode nav.main-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.search-box {
    position: relative;
}

.search-box input {
    background: var(--dark-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text);
    outline: none;
    transition: all 0.3s;
    width: 200px;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    width: 250px;
}

.theme-toggle {
    background: var(--dark-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.05);
}

.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto;
    border-radius: 2px;
}

.articles {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--dark-card);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
}

.article-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background: rgba(0, 212, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    color: var(--primary);
    font-size: 0.8rem;
    text-decoration: none;
}

.article-tag:hover {
    background: rgba(0, 212, 255, 0.3);
}

.article-card h3 {
    margin-bottom: 0.8rem;
    color: var(--text);
    font-size: 1.3rem;
}

.article-card h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card .excerpt {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    background: var(--dark-card);
    color: var(--text);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

footer {
    background: var(--dark-lighter);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-dim);
    margin-top: 2rem;
}

/* Single Post Styles */
.single-post {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.post-content {
    color: var(--text);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

.post-content h2,
.post-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content code {
    background: var(--dark-card);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: var(--dark-card);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
}