/*
Theme Name: ViralQuotes for Astra
Theme URI: https://viralquotes.com
Author: ViralQuotes Team
Author URI: https://viralquotes.com
Description: A modern, multilingual quotes library theme compatible with Astra. Features AI-powered search, 236+ curated quotes, 63 mood categories, and GEO-aware content.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: viralquotes
Tags: quotes, multilingual, ai, inspirational, motivational, blog, custom-post-type
Template: astra

This theme, like WordPress, is licensed under the GPL.
*/

/* Import Astra parent theme styles */
@import url('../astra/style.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Spectral:wght@400;600;700&display=swap');

:root {
    --color-bg: #0A0E27;
    --color-bg-secondary: #131829;
    --color-bg-card: #1A1F3A;
    --color-text: #E8E9F3;
    --color-text-secondary: #9CA3C3;
    --color-accent: #7C3AED;
    --color-accent-hover: #6D28D9;
    --color-pink: #EC4899;
    --color-amber: #F59E0B;
    --color-border: #2D3250;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Spectral', serif;
}

.hero-quote {
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.3;
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink), var(--color-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 0.875rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.pill {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.pill:hover, .pill.active {
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.quote-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-pink), var(--color-amber));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.quote-card:hover {
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.search-input {
    width: 100%;
    padding: 1.125rem 3.5rem 1.125rem 1.75rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s;
}

.search-input::placeholder {
    color: var(--color-text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

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

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

/* WordPress specific overrides */
.site-header {
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.site-content {
    background: transparent;
}

.ast-container {
    max-width: 1200px;
}

/* Override Astra defaults */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single,
.ast-plain-container .site-content .ast-article-single {
    background: transparent;
}

/* Custom WordPress classes */
.wp-block-quote {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-text-secondary);
}

.alignwide {
    max-width: 1200px;
    margin: 0 auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

/* Animation keyframes */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Go to top button */
#go-to-top-btn {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #5B21B6);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
}

#go-to-top-btn:hover {
    transform: scale(1.1);
}

#go-to-top-btn.visible {
    opacity: 1;
    pointer-events: all;
}

/* AI floating button */
#ai-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 50;
    border: none;
}

#ai-fab:hover {
    transform: scale(1.1);
}