/* ============================
   GLOBAL VARIABLES (APPLE FONT)
   ============================ */

html {
    background: var(--bg);
    min-height: 100%;
}

:root {
    --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ============================
   HEADER
   ============================ */
.rfk-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    z-index: 9999;
}

.rfk-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
}

.rfk-title {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.85;
}

/* ============================
   RIFKI LOGO – TEMA DESTEKLİ (FINAL)
   ============================ */
.rfk-logo {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

[data-theme="apple-light"] .rfk-logo,
[data-theme="siri-light"] .rfk-logo,
[data-theme="light-mode"] .rfk-logo {
    background-image: url("../img/rifki-logo.svg");
}

[data-theme="apple-dark"] .rfk-logo,
[data-theme="siri-dark"] .rfk-logo,
[data-theme="dark-mode"] .rfk-logo {
    background-image: url("../img/rifki-logo-light.svg");
}

/* ============================
   IOS GLASS UTILITIES
   ============================ */
.glass-card {
    background: var(--ios-card-bg);
    backdrop-filter: blur(var(--ios-blur));
    -webkit-backdrop-filter: blur(var(--ios-blur));
    border: 1px solid var(--ios-border);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-shadow);
    color: var(--text-main);
}

.glass-panel {
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--ios-border);
}

.ios-btn {
    background: #007AFF;
    color: white;
    border-radius: var(--btn-radius);
    font-weight: 600;
    padding: 14px 20px;
    transition: transform 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.ios-btn:active {
    transform: scale(0.96);
}

/* Animations and legacy canvas styles removed */

body {
    position: relative;
    z-index: 2;
}

html {
    background: var(--bg) !important;
}

/* ============================
   BASE TYPOGRAPHY (APPLE STYLE)
   ============================ */
body {
    font-family: var(--font-sf);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.h-large-title {
    font-size: 34px;
    line-height: 41px;
    letter-spacing: -0.01em;
    font-weight: 700;
}

.h-title1 {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.005em;
    font-weight: 700;
}

.h-title2 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
}

.h-title3 {
    font-size: 20px;
    line-height: 25px;
    font-weight: 600;
}

.text-body {
    font-size: 17px;
    line-height: 22px;
}

.text-callout {
    font-size: 16px;
    line-height: 21px;
}

.text-subhead {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.002em;
}

.text-footnote {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0.003em;
}

.text-caption {
    font-size: 12px;
    line-height: 16px;
}


/* ============================
   LANGUAGE SWITCH
   ============================ */
.lang-switch {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999;
}

/* ============================
   THEME SELECT LIST (iOS STYLE)
   ============================ */
.select-list {
    margin-top: 20px;
    background: none;
    border-radius: 0;
    overflow: visible;
}

.select-item {
    padding: 16px 20px;
    font-size: 17px;
    cursor: pointer;
    border-bottom: none;
    transition: all 0.4s var(--spring-easing);
    text-align: center;
}

.select-item:last-child {
    border-bottom: none;
}

.select-item:not(.active) {
    opacity: .5;
    filter: blur(1px);
}

.select-item:hover {
    opacity: 1;
    filter: none;
    transform: scale(1.04) translateY(-2px);
    position: relative;
    z-index: 2;
}

[data-theme="apple-light"] .select-item.active,
[data-theme="siri-light"] .select-item.active {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 1;
    filter: none;
}

[data-theme="apple-dark"] .select-item.active,
[data-theme="siri-dark"] .select-item.active {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    color: var(--accent-color);
    font-weight: 600;
    opacity: 1;
    filter: none;
}

.section-header {
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0.003em;
    font-weight: 600;
    color: rgba(120, 120, 120, 0.9);
    text-transform: uppercase;
    margin: 32px 0 8px 0;
    padding-left: 4px;
}

.checkmark {
    float: right;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity .25s ease, transform .25s ease;
    font-weight: 600;
    color: var(--accent-color);
}

.select-item.active .checkmark {
    opacity: 1;
    transform: scale(1);
}

.select-item.active .checkmark::before {
    content: "✓";
}

.theme-icon {
    font-size: 18px;
    margin-right: 12px;
    opacity: .9;
    display: inline-block;
    width: 22px;
    text-align: center;
    transform: translateY(1px);
}

.select-item:active {
    transform: scale(0.96);
    background: rgba(0, 0, 0, 0.06);
    transition: transform .15s var(--spring-easing);
}

[data-theme="apple-dark"] .select-item:active,
[data-theme="siri-dark"] .select-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.hide {
    display: none !important;
}

/* Final Global Utilities */
.orb-standard-wrapper {
    transform: scale(0.6);
    margin: 2rem auto;
    align-self: center;
}

.text-muted-compact {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}