* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #020617;
    --glass-bg: rgba(15, 23, 42, 0.68);
    --glass-border: rgba(148, 163, 184, 0.4);
    --accent-1: #6366f1;
    --accent-2: #ec4899;
    --accent-3: #22c55e;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --radius-lg: 20px;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.85);
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* Arka plan efektleri */
.background-gradients {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 10%, rgba(129, 140, 248, 0.28), transparent 55%),
        radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.30), transparent 55%),
        radial-gradient(circle at 0% 80%, rgba(45, 212, 191, 0.18), transparent 55%);
    filter: blur(2px);
    z-index: -1;
}

/* Uygulama kabuğu */
.app-shell {
    width: 100%;
    max-width: 1120px;
    padding: 28px 18px 24px;
}

/* Glass header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 16px 20px;
    border-radius: 999px;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(24px);
    animation: fadeDown 0.7s ease-out;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 64px;
    width: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #fbbf24, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #0b1120;
    font-size: 0.9rem;
}

.brand h1 {
    font-size: 1.1rem;
    font-weight: 700;
}

.brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Header chips */
.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip.active {
    background: radial-gradient(circle at 0% 0%, #4ade80, #22c55e);
    color: #022c22;
    border-color: transparent;
}

.chip.subtle {
    opacity: 0.8;
}

/* Ana grid */
.content-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 2.1fr 1.4fr;
    grid-template-rows: auto auto;
    gap: 18px;
}

/* Glass kart ortak */
.glass-card {
    background: linear-gradient(135deg,
                rgba(15, 23, 42, 0.88),
                rgba(15, 23, 42, 0.82));
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(26px);
    padding: 18px 20px 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.glass-card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.95);
    border-color: rgba(209, 213, 219, 0.7);
}

/* Hero kart */
.hero-card {
    grid-row: span 2;
    animation: floatUp 0.8s ease-out;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.45), transparent 60%),
        radial-gradient(circle at 100% 40%, rgba(236, 72, 153, 0.35), transparent 60%);
    opacity: 0.8;
    right: -120px;
    top: -140px;
    filter: blur(2px);
}

.hero-card h2 {
    font-size: 1.35rem;
    margin-top: 6px;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.4);
    position: relative;
    z-index: 1;
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* Butonlar */
.primary-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.55);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(59, 130, 246, 0.7);
}

.primary-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.65);
}

.ghost-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-muted);
    padding: 9px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ghost-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
}

.ghost-btn:active {
    transform: scale(0.97);
}

/* Nasıl çalışır listesi */
.how-list {
    margin-top: 14px;
    padding-left: 18px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.how-list.hidden {
    display: none;
}

/* Hızlı kart grid */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 15px;
    animation: floatUp 0.9s ease-out;
    position: relative;
    z-index: 1;
}

.mini-card {
    position: relative;
    border-radius: 16px;
    padding: 12px 12px 10px;
    background: radial-gradient(circle at 0 0,
                rgba(148, 163, 184, 0.28),
                rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.9);
    border-color: rgba(244, 244, 245, 0.9);
}

.mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
}

.mini-icon.purple {
    background: radial-gradient(circle at 20% 0%, #a855f7, #6366f1);
}

.mini-icon.green {
    background: radial-gradient(circle at 20% 0%, #22c55e, #16a34a);
}

/* Tooltip - VARSAYILAN (AŞAĞIYA) */
.mini-card::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: 105%;
    transform: translateX(-50%);
    white-space: normal;
    max-width: 250px;
    background: rgba(15, 23, 42, 0.96);
    color: #e5e7eb;
    font-size: 0.72rem;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
    z-index: 10;
    text-align: center;
    line-height: 1.4;
}

/* Ok işareti - VARSAYILAN (AŞAĞIYA) */
.mini-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 99%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(15, 23, 42, 0.96) transparent;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 9;
}

/* Hover'da göster - VARSAYILAN */
.mini-card:hover::after,
.mini-card:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

/* İLK KART (Öğrenci Sonuçları) - AŞAĞIYA ÇIKSIN */
.mini-card:first-child::after {
    top: 105%;
    bottom: auto;
    z-index: 999;
}

.mini-card:first-child::before {
    top: 99%;
    bottom: auto;
    border-color: transparent transparent rgba(15, 23, 42, 0.96) transparent;
    z-index: 998;
}

.mini-card:first-child:hover::after,
.mini-card:first-child:hover::before {
    transform: translateX(-50%) translateY(2px);
}

/* İKİNCİ KART (Yönetici Girişi) - YUKARI ÇIKSIN */
.mini-card:last-child::after {
    top: auto;
    bottom: 105%;
    z-index: 999;
}

.mini-card:last-child::before {
    top: auto;
    bottom: 99%;
    border-color: rgba(15, 23, 42, 0.96) transparent transparent transparent;
    z-index: 998;
}

.mini-card:last-child:hover::after,
.mini-card:last-child:hover::before {
    transform: translateX(-50%) translateY(-2px);
}

/* İstatistik kart */
.stats-card {
    animation: floatUp 1s ease-out;
}

.stats-card h2 {
    font-size: 0.98rem;
    margin-bottom: 10px;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 12px;
}

.stat {
    border-radius: 14px;
    padding: 12px 14px 10px;
    background: radial-gradient(circle at 0 0,
                rgba(55, 65, 81, 0.75),
                rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(75, 85, 99, 0.7);
    display: flex;
    flex-direction: column;
}

.stat .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat .value {
    margin-top: 2px;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

/* Trend göstergesi */
.trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    margin-top: 4px;
}

.trend.up {
    color: #4ade80;
}

.trend.down {
    color: #f97316;
}

.stat.pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(129, 140, 248, 0.4));
    grid-column: span 1;
}

.pill-label {
    font-size: 0.7rem;
    color: #e0f2fe;
    margin-bottom: 4px;
    line-height: 1.2;
}

.pill-value {
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 600;
}

/* Inline not */
.inline-note {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.inline-note .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

/* Info banner */
.info-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    animation: floatUp 1.05s ease-out;
}

.info-banner h3 {
    font-size: 0.95rem;
}

.info-banner p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.round-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at 0 0, #f97316, #ec4899);
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(248, 113, 113, 0.7);
    transition: transform 0.18s ease;
}

.round-btn:hover {
    transform: translateX(2px);
}

/* Footer */
.footer {
    margin-top: 12px;
    font-size: 0.74rem;
    text-align: center;
    color: #6b7280;
}

/* Animasyonlar */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .glass-header {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 24px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .hero-card {
        grid-row: auto;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat.pill {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .app-shell {
        padding-inline: 12px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .stat.pill {
        grid-column: span 1;
    }

    .glass-header {
        padding-inline: 14px;
    }
}

/* RIASEC İkonları - LUXURY VERSION */
.riasec-badges {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.riasec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 14px;
    min-width: 70px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1.5px solid rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

/* Glow efekti */
.riasec-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.riasec-item:hover::before {
    opacity: 1;
}

.riasec-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.25));
    border-color: rgba(99, 102, 241, 0.8);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.riasec-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.riasec-letter {
    font-size: 0.8rem;
    font-weight: 800;
    color: #cbd5e1;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* Hover tooltip - ŞIK */
.riasec-item::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px) scale(0.9);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: #e5e7eb;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.riasec-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Her biri farklı renk hover */
.riasec-item:nth-child(1):hover {
    border-color: rgba(239, 68, 68, 0.8);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

.riasec-item:nth-child(2):hover {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.riasec-item:nth-child(3):hover {
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
}

.riasec-item:nth-child(4):hover {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
}

.riasec-item:nth-child(5):hover {
    border-color: rgba(234, 179, 8, 0.8);
    box-shadow: 0 12px 30px rgba(234, 179, 8, 0.4);
}

.riasec-item:nth-child(6):hover {
    border-color: rgba(14, 165, 233, 0.8);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

/* ============================================
   RIASEC MOBİL UYUM
   ============================================ */
@media (max-width: 900px) {
    .riasec-badges {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .riasec-badges {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }
    
    .riasec-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 12px 10px !important;
        min-width: 50px !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15)) !important;
        border: 1px solid rgba(148, 163, 184, 0.4) !important;
    }
    
    .riasec-icon {
        font-size: 1.3rem !important;
        display: block !important;
    }
    
    .riasec-letter {
        font-size: 0.7rem !important;
        font-weight: 800 !important;
        color: #cbd5e1 !important;
        display: block !important;
    }
    
    /* Tooltip mobilde kapat */
    .riasec-item::after,
    .riasec-item::before {
        display: none !important;
    }
}

@media (max-width: 400px) {
    .riasec-badges {
        gap: 6px !important;
    }
    
    .riasec-item {
        padding: 10px 8px !important;
        min-width: 45px !important;
    }
    
    .riasec-icon {
        font-size: 1.1rem !important;
    }
    
    .riasec-letter {
        font-size: 0.6rem !important;
    }
}

/* ============================================
   EK İYİLEŞTİRMELER
   ============================================ */

/* Muted text biraz daha okunur */
.muted {
    color: #a1a1aa;
}

/* Footer padding */
.footer {
    margin-top: 20px;
    padding: 16px 0;
}

@media (max-width: 900px) {
    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mini-card tooltip mobilde kapalı */
    .mini-card::after,
    .mini-card::before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Hero butonları alt alta */
    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero-actions .primary-btn,
    .hero-actions .ghost-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Badge küçülsün */
    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    /* Başlık küçülsün */
    .hero-card h2 {
        font-size: 1.15rem;
    }
}

/* === ANA KARTLARA HAFİF GİRİŞ ANİMASYONU === */
.glass-card {
  transform-origin: top center;
  animation: cardIn 0.45s ease-out;
}

.glass-card:nth-of-type(2) {
  animation-delay: 0.05s;
}

.glass-card:nth-of-type(3) {
  animation-delay: 0.1s;
}

.glass-card:nth-of-type(4) {
  animation-delay: 0.15s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === ANA BAŞLAT BUTONU – HAFİF NABIZ + HIGHLIGHT === */
.primary-btn.primary-btn--main {
  position: relative;
  overflow: hidden;
  animation: mainBtnPulse 2.8s ease-in-out infinite;
}

@keyframes mainBtnPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.55);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 22px 52px rgba(59, 130, 246, 0.85);
  }
}

/* Hover’da ince ışık çizgisi */
.primary-btn.primary-btn--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity 0.25s ease, transform 0.45s ease;
}

.primary-btn.primary-btn--main:hover::after {
  opacity: 1;
  transform: translateX(60%);
}

/* === RIASEC İKONLARINA HAFİF HOVER === */
.riasec-item {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.riasec-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.7);
}

/* Hareket sevmeyen cihazlar için animasyon kapama */
@media (prefers-reduced-motion: reduce) {
  .glass-card,
  .primary-btn.primary-btn--main {
    animation: none !important;
  }
}

/* Mobilde tıklayınca çıkan mavi highlight'ı kapat */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Odak çerçevesini de istemiyorsan (sadece dokunmatik için mantıklı) */
button:focus,
a:focus {
  outline: none;
  box-shadow: none;
}
