/* Kundli Matchmaking Theme */
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Poppins:wght@300;400;500;600&family=Dancing+Script:wght@400;600;700&display=swap');

:root {
    /* Primary Colors - Cosmic & Spiritual */
    --primary-color: #8B4513; /* Saddle Brown - Earth element */
    --secondary-color: #DAA520; /* Goldenrod - Divine golden */
    --accent-color: #FF6B35; /* Vermillion - Sacred fire */
    --mystic-purple: #6A0DAD; /* Deep purple - Mystical */
    --cosmic-blue: #191970; /* Midnight blue - Cosmic depth */
    
    /* Neutral Colors */
    --background-primary: #FFF8DC; /* Cornsilk - Peaceful cream */
    --background-secondary: #F5F5DC; /* Beige - Warm neutral */
    --surface-color: #FFFFFF;
    --text-primary: #2F2F2F;
    --text-secondary: #5D4E37; /* Dark olive - Earthy text */
    --border-color: #D2B48C; /* Tan - Soft borders */
    
    /* Gradient Colors */
    --gradient-sunset: linear-gradient(135deg, #FF6B35 0%, #DAA520 50%, #8B4513 100%);
    --gradient-cosmic: linear-gradient(135deg, #191970 0%, #6A0DAD 50%, #FF6B35 100%);
    --gradient-divine: linear-gradient(45deg, #DAA520 0%, #FFF8DC 50%, #DAA520 100%);
    
    /* Shadows */
    --shadow-soft: 0 2px 8px rgba(139, 69, 19, 0.1);
    --shadow-medium: 0 4px 16px rgba(139, 69, 19, 0.15);
    --shadow-deep: 0 8px 24px rgba(139, 69, 19, 0.2);
    
    /* Typography */
    --font-primary: 'Cinzel', 'Georgia', serif;
    --font-secondary: 'Poppins', 'Arial', sans-serif;
    --font-decorative: 'Dancing Script', cursive;
}


/* Base Styles */
body {
    background: var(--background-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    font-family: var(--font-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Styles */
.app-header {
    background: var(--gradient-cosmic);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.app-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.app-subtitle {
    font-family: var(--font-decorative);
    font-size: 1.2rem;
    text-align: center;
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: var(--gradient-divine);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Card Styles */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sunset);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-deep);
}

.card-header {
    background: var(--gradient-divine);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Kundli Specific Components */
.kundli-chart {
    background: var(--surface-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    width: 300px;
    height: 300px;
    margin: 2rem auto;
    box-shadow: var(--shadow-deep);
}

/* Chart Container Styles */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 1rem;
    background: rgba(255, 248, 220, 0.3);
    border-radius: 8px;
    margin: 1rem 0;
}

.chart-container svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

/* Interpretation Content */
.interpretation-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.interpretation-content h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.interpretation-content h4 {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.interpretation-content table {
    margin: 1rem 0;
    width: 100%;
}

.interpretation-content table th {
    background: var(--gradient-divine);
    color: var(--primary-color);
    font-weight: 600;
}

.interpretation-content table td {
    border-bottom: 1px solid var(--border-color);
}

.interpretation-content ul {
    padding-left: 1.5rem;
}

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

.kundli-chart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
}

.horoscope-house {
    position: absolute;
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.horoscope-house:hover {
    background: rgba(218, 165, 32, 0.2);
    transform: scale(1.05);
}

/* Match Score Display */
.match-score {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-divine);
    border-radius: 12px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.match-score::before {
    content: '✨';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    opacity: 0.6;
}

.match-score::after {
    content: '✨';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.6;
}

.score-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-family: var(--font-decorative);
}

/* Guna Matching Table */
.guna-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.guna-table th {
    background: var(--gradient-sunset);
    color: white;
    padding: 1rem;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 600;
}

.guna-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.guna-table tr:nth-child(even) {
    background: rgba(248, 248, 220, 0.3);
}

.guna-table tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-sunset);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: var(--font-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--surface-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Sacred Symbols */
.om-symbol {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin: 1rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .kundli-chart {
        width: 250px;
        height: 250px;
    }
    
    .score-value {
        font-size: 3rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mystical Elements */
.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-sunset);
}

.divider-text {
    background: var(--background-primary);
    padding: 0 1rem;
    color: var(--secondary-color);
    font-family: var(--font-decorative);
    font-size: 1.1rem;
    position: relative;
}