@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+Sinhala:wght@300;400;700&family=Abhaya+Libre:wght@400;700&display=swap');

:root {
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.5);
    --secondary: #fbbf24;
    --accent: #d97706;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Outfit', 'Noto Sans Sinhala', sans-serif;
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.premium-card {
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Input Styles */
input, select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Horoscope Grid */
.kendra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    background: transparent;
    margin: auto;
    position: relative;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.cell {
    border: 0.5px solid rgba(99, 102, 241, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
    padding: 8px;
}

.center-cell {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(245, 158, 11, 0.1);
    text-align: center;
}

.house-num {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.planet-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
    margin: 2px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d97706);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.02);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
