/*
Theme Name: Glowvibe Theme
Theme URI: https://glowvibe.in/
Author: Antigravity
Description: A premium, modern glassmorphism theme with a vibrant, glowing aesthetic.
Version: 1.0
Text Domain: glowvibe
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;900&display=swap');

:root {
    --bg-color: #0a0f1d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-glow: #8b5cf6;
    --accent-secondary: #ec4899;
    --accent-tertiary: #06b6d4;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Gradient Blobs */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, rgba(10,15,29,0) 70%);
    top: -100px;
    left: -100px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, rgba(10,15,29,0) 70%);
    bottom: 10%;
    right: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 15, 29, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, var(--accent-glow), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hue 10s infinite linear;
}

@keyframes hue {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-glow);
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--accent-glow);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-secondary));
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.5);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(236, 72, 153, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Featured Posts Grid */
.featured-posts {
    padding: 8rem 0;
}

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

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

.post-card {
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.post-thumb {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    background: #1e293b;
    transition: var(--transition-smooth);
}

.post-card:hover .post-thumb {
    transform: scale(1.02);
}

.post-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-glow);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    background: rgba(10, 15, 29, 0.4);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-text {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.25rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-glow);
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .main-navigation { display: none; } /* Add mobile menu later if needed */
    .hero-title { font-size: 3rem; }
    .posts-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Single Post & Page Content Styling
   ========================================================================== */

.entry-content h1, .entry-content h2, .entry-content h3, 
.entry-content h4, .entry-content h5, .entry-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

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

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

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

.entry-content blockquote {
    border-left: 4px solid var(--accent-glow);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
}

.entry-content a {
    color: var(--accent-glow);
    text-decoration: underline;
    text-decoration-color: rgba(139, 92, 246, 0.3);
    text-underline-offset: 4px;
}

.entry-content a:hover {
    text-decoration-color: var(--accent-glow);
}

/* ==========================================================================
   Comments & Forms Styling
   ========================================================================== */

.comment-list .comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.comment-body {
    display: flex;
    gap: 1.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    border: 2px solid var(--accent-glow);
}

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

.comment-meta a {
    color: var(--text-secondary);
}

.comment-content {
    font-size: 1rem;
    line-height: 1.6;
}

.reply a {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    font-weight: 600;
}

.custom-comment-form input[type="text"],
.custom-comment-form input[type="email"],
.custom-comment-form input[type="url"],
.custom-comment-form textarea,
.search-form .search-field {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.custom-comment-form input:focus,
.custom-comment-form textarea:focus,
.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.custom-comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-submit {
    padding: 1rem 2rem;
    background: var(--accent-glow);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.search-form .search-submit:hover {
    background: var(--accent-secondary);
}
