/*
Theme Name: AşkTesti - Modern Aşk Testi Sitesi
Theme URI: https://asktesti.com.tr
Author: AşkTesti
Author URI: https://asktesti.com.tr
Description: Modern ve eğlenceli aşk testi sitesi. Gece teması, glassmorphism, animasyonlu zodyak ikonları ve profesyonel burç uyumu testi.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: asktesti
Tags: one-page, custom-colors, entertainment, love-test, responsive, custom-header, glassmorphism, dark-theme

License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================
   MODERN COLOR PALETTE
   ============================================ */
:root {
    --deep-red: #7c1d2b;
    --crimson: #a61e4d;
    --rose: #e11d48;
    --gold: #fbbf24;
    --gold-light: #fcd34d;
    --night-blue: #0f172a;
    --night-purple: #1e1b4b;
    --midnight: #020617;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
}

/* ============================================
   BASE STYLES & MODERN FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    background: var(--midnight);
    color: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* ============================================
   NIGHT THEME GRADIENT BACKGROUND
   ============================================ */
.night-gradient {
    background: linear-gradient(135deg, var(--midnight) 0%, var(--night-purple) 25%, #2e1065 50%, var(--night-purple) 75%, var(--midnight) 100%);
    background-size: 400% 400%;
    animation: nightShift 20s ease infinite;
}

@keyframes nightShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Starfield effect */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 300px 150px, rgba(255, 255, 255, 0.2), transparent);
    background-repeat: repeat;
    background-size: 350px 200px;
    animation: twinkle 5s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 var(--glass-highlight);
}

.glass-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-hover:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   ZODIAC ICONS & ANIMATIONS
   ============================================ */
.zodiac-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(225, 29, 72, 0.2));
    border: 2px solid rgba(251, 191, 36, 0.3);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.zodiac-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.zodiac-icon:hover::before {
    opacity: 1;
}

.zodiac-icon:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

.zodiac-icon.pulse {
    animation: zodiacPulse 2s ease-in-out infinite;
}

@keyframes zodiacPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(251, 191, 36, 0);
        transform: scale(1.05);
    }
}

/* Zodiac constellation lines */
.zodiac-constellation {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.zodiac-constellation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 20% 30%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 60% 40%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 30% 60%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, var(--gold) 1px, transparent 1px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.zodiac-icon:hover .zodiac-constellation::after {
    opacity: 0.6;
}

/* ============================================
   CIRCULAR PROGRESS BAR (Heart Style)
   ============================================ */
.progress-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-circle.heart .progress-circle-fill {
    stroke: url(#heartGradient);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Heart beat animation for high compatibility */
.heart-beat {
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn-glass {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(225, 29, 72, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glass:hover::before {
    left: 100%;
}

.btn-glass:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(225, 29, 72, 0.25));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn-glass-primary {
    background: linear-gradient(135deg, var(--deep-red), var(--crimson));
    border: none;
}

.btn-glass-primary:hover {
    background: linear-gradient(135deg, var(--crimson), var(--rose));
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.4);
}

/* ============================================
   ZODIAC CARD SELECTION
   ============================================ */
.zodiac-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.zodiac-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(225, 29, 72, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.zodiac-card:hover::before,
.zodiac-card.selected::before {
    opacity: 1;
}

.zodiac-card:hover,
.zodiac-card.selected {
    border-color: var(--gold);
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(251, 191, 36, 0.2);
}

.zodiac-card.selected {
    border-width: 2px;
    background: rgba(251, 191, 36, 0.1);
}

.zodiac-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.4s ease;
}

.zodiac-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
}

.zodiac-card .card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.zodiac-card .card-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.input-glass {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-glass:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

select.input-glass {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

select.input-glass option {
    background: var(--night-purple);
    color: #fff;
}

/* ============================================
   SECTION TRANSITIONS
   ============================================ */
.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   COMPATIBILITY RESULT DISPLAY
   ============================================ */
.compatibility-result {
    padding: 2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 27, 75, 0.8));
    border: 1px solid rgba(251, 191, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.compatibility-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.1), transparent 70%);
    animation: resultGlow 3s ease-in-out infinite;
}

@keyframes resultGlow {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.compatibility-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), #f59e0b, var(--rose));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scoreShimmer 3s ease infinite;
}

@keyframes scoreShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   SPARKLE EFFECTS
   ============================================ */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    animation: sparkleAnim 2s ease-in-out infinite;
}

@keyframes sparkleAnim {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   FLOATING PARTICLES
   ============================================ */
.floating-particle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    animation: floatParticle 15s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE GRID
   ============================================ */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .zodiac-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.glow-gold {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.glow-rose {
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.3);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass {
        background: rgba(0, 0, 0, 0.8);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .night-gradient {
        background: white !important;
        color: black !important;
    }

    .glass {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}