/*
Theme Name: Kundli Cosmic
Description: A cosmic-themed WordPress LMS theme with starfield animations, glass morphism effects, and golden gradients. Supports Elementor, Slider Revolution, Cashfree payments, and LearnPress.
Version: 1.0.0
Author: Shankar Bordoloi
Author URI: https://kundligenerator.com/shankar-bordoloi
Tags: education, lms, cosmic, astrology, responsive, elementor-ready
Text Domain: kundli-cosmic
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
*/

/* CSS Variables - Cosmic Design System */
:root {
    --primary-gold: #FFD700;
    --cosmic-blue: #1A0B3D;
    --deep-space: #0D051F;
    --star-white: #FFFFFF;
    --silver-mist: #C0C0C0;
    --cosmic-purple: #2D1B69;
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    --gradient-cosmic: linear-gradient(135deg, #1A0B3D 0%, #2D1B69 50%, #4B0082 100%);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
    --shadow-cosmic: 0 8px 32px rgba(26, 11, 61, 0.4);
    --border-radius: 15px;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--deep-space);
    color: var(--star-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Stars Background */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0D051F 0%, #1A0B3D 50%, #2D1B69 100%);
    overflow: hidden;
}

.stars-bg::before,
.stars-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 100px 50px, #fff, transparent),
        radial-gradient(2px 2px at 200px 100px, #fff, transparent),
        radial-gradient(1px 1px at 300px 150px, #fff, transparent),
        radial-gradient(1px 1px at 400px 200px, #fff, transparent),
        radial-gradient(2px 2px at 500px 250px, #fff, transparent),
        radial-gradient(1px 1px at 600px 50px, #fff, transparent),
        radial-gradient(1px 1px at 700px 100px, #fff, transparent),
        radial-gradient(2px 2px at 800px 150px, #fff, transparent);
    background-repeat: repeat;
    background-size: 900px 300px;
    animation: twinkle 6s ease-in-out infinite alternate;
}

.stars-bg::after {
    background-image: 
        radial-gradient(1px 1px at 150px 75px, #FFD700, transparent),
        radial-gradient(2px 2px at 250px 125px, #FFD700, transparent),
        radial-gradient(1px 1px at 350px 175px, #FFD700, transparent),
        radial-gradient(1px 1px at 450px 225px, #FFD700, transparent),
        radial-gradient(2px 2px at 550px 25px, #FFD700, transparent);
    animation: twinkle 8s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--star-white);
    text-shadow: 0 0 10px var(--primary-gold);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cosmic-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-cosmic);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--cosmic-blue);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    color: var(--cosmic-blue);
}

.btn-outline {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--cosmic-blue);
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--star-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: var(--silver-mist);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--primary-gold);
}

.card-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.card-body {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .cosmic-container {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cosmic-container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--silver-mist);
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
