:root {
    --bg-dark: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Noto Sans Georgian', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-fx {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #4c1d95;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #0f4c75;
    animation-delay: -5s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

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

/* Typography & Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    color: #a78bfa;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
}

.date-display .label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.date-display .value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* Main Content Views */
.main-content {
    flex: 1;
    position: relative;
    display: flex; /* Ensure centering works */
    flex-direction: column; /* Ensure centering works */
}

.view {
    width: 100%;
    flex: 1;
    display: none; /* Hidden by default */
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Selection View */
#selection-view {
    align-items: center;
}

.intro-text {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.zodiac-wheel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Glass Panel Cards */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.zodiac-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.zodiac-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
}

.zodiac-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zodiac-card:hover::before {
    opacity: 0.2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.card-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    z-index: 1;
}

.card-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    z-index: 1;
}

/* Reading View */
#reading-view {
    align-items: center;
    justify-content: center;
}

.reading-card {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    position: relative;
}

.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--text-primary);
}

.reading-header {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.sign-symbol {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--accent-glow);
}

.reading-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.date-range {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border), transparent);
    margin: 2rem 0;
}

.reading-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 3rem;
}

.reading-footer {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.stat .val {
    font-weight: 600;
    color: #a78bfa;
}

@media (max-width: 768px) {
    .zodiac-wheel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reading-card {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .intro-text h1 {
        font-size: 2rem;
    }
    
    .zodiac-wheel {
        grid-template-columns: 1fr;
    }
}
