/**
 * Metin2kayitol.com — Arthion Theme Extension Stylesheet
 * Works alongside assets/index-DlyMX2Xh.css (Arthion Design System)
 * Fonts: 'Domine' (serif body + Turkish ext), 'Song Myung' (Korean section symbols), 'Fugaz One' (display)
 */

html {
    scroll-behavior: smooth;
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    font-family: var(--font-sans);
}

body {
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    overflow-x: hidden;
}

/* ==========================================================================
   KURAL #5: RESMİ ALTIN ONAY ROZETİ (.rohan-mirror-check)
   ========================================================================== */
.rohan-mirror-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffe5a3 0%, #d49c46 52%, #724c14 100%);
    border: 1px solid #e5b66b;
    color: #fff6db;
    box-shadow: 0 0 8px rgba(229, 182, 107, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.55);
    vertical-align: middle;
    flex-shrink: 0;
}

.rohan-mirror-check .rohan-check-svg {
    width: 11px;
    height: 11px;
    stroke: #261604;
    filter: drop-shadow(0 1px 0 rgba(255, 235, 179, 0.7));
}

/* ==========================================================================
   ARTHION HERO DISPLAY TITLE & MASKED VIDEO
   ========================================================================== */
.arthion-hero-mask {
    mask-image: linear-gradient(to bottom, black calc(100% - 180px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 180px), transparent 100%);
}

.arthion-page-bg-mask {
    mask-image: linear-gradient(to bottom, black calc(100% - 200px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 200px), transparent 100%);
}

.arthion-hero-logo {
    height: 115px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.92));
}

@media (min-width: 640px) {
    .arthion-hero-logo {
        height: 140px;
    }
}

@media (min-width: 768px) {
    .arthion-hero-logo {
        height: 168px;
    }
}

/* Uses Domine 700 Italic + Fugaz One so Turkish glyphs (İ, Ş, Ğ, Ü, Ö, Ç) have 100% uniform thick strokes */
.arthion-display-stroke {
    font-family: 'Domine', 'Fugaz One', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--color-card-text-title);
    -webkit-text-stroke: 1.5px rgb(42, 26, 8);
    paint-order: stroke fill;
    filter: drop-shadow(rgba(0, 0, 0, 0.92) 0px 3px 5px) drop-shadow(rgba(0, 0, 0, 0.85) 0px 0px 16px);
}

#hero-video-desktop {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 520px;
    max-height: 760px;
    object-fit: cover !important;
}

#hero-video-mobile {
    display: block !important;
    width: 100% !important;
    height: 540px !important;
    object-fit: cover !important;
}

@media (min-width: 768px) {
    #hero-video-desktop {
        display: block !important;
    }
    #hero-video-mobile {
        display: none !important;
    }
}

#arthion-class-video {
    width: 148px;
    height: 148px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--color-card-border);
    background-color: var(--color-header-bg);
}

/* ==========================================================================
   ARTHION GRADIENT SIDE-BORDER CARD (from presentation.html)
   ========================================================================== */
.arthion-gradient-panel {
    position: relative;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: linear-gradient(to right, var(--color-body-bg-dark), var(--color-body-bg));
    border-left: 1px solid var(--color-card-border);
}

.arthion-gradient-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--color-card-border), transparent);
    pointer-events: none;
}

.arthion-gradient-panel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, var(--color-card-border), transparent);
    pointer-events: none;
}

/* ==========================================================================
   ARTHION VECTOR ENGRAVED BRONZE & GOLD ORNATE DIVIDER (ZERO BLUR AT ANY WIDTH)
   ========================================================================== */
.arthion-ornate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 18px;
    margin: 2px 0;
    user-select: none;
    pointer-events: none;
}

.arthion-ornate-divider .divider-wing {
    flex: 1;
    height: 2px;
    position: relative;
}

.arthion-ornate-divider .divider-wing-left {
    background: linear-gradient(90deg, rgba(107, 102, 98, 0.05) 0%, rgba(149, 140, 123, 0.55) 65%, rgba(229, 182, 107, 0.92) 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

.arthion-ornate-divider .divider-wing-right {
    background: linear-gradient(270deg, rgba(107, 102, 98, 0.05) 0%, rgba(149, 140, 123, 0.55) 65%, rgba(229, 182, 107, 0.92) 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

.arthion-ornate-divider .divider-crest {
    width: 76px;
    height: 18px;
    flex-shrink: 0;
    margin: 0 6px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
}

/* ==========================================================================
   ARTHION ROTATED DIAMOND NUMBER BAR (from presentation.html)
   ========================================================================== */
.arthion-diamond-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: 2.35rem;
    padding-left: 2.85rem;
    padding-right: 1rem;
    border-radius: 0.25rem;
    background: linear-gradient(to right, var(--color-card-border), transparent);
}

.arthion-diamond-badge {
    position: absolute;
    left: 0.35rem;
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    background-color: var(--color-card-bg);
    border: 2px solid var(--color-card-border);
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.arthion-diamond-badge > span {
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--color-card-text-title);
}

/* ==========================================================================
   ARTHION GREEN CTA BUTTON & TAB BUTTONS
   ========================================================================== */
.arthion-btn-green {
    background: linear-gradient(to top, var(--color-button-green), var(--color-button-green-gradient));
    border: 1px solid var(--color-button-border);
    color: var(--color-input-text);
    transition: filter 0.2s ease, transform 0.15s ease;
}

.arthion-btn-green:hover {
    filter: brightness(1.1);
}

.arthion-btn-green:active {
    transform: translateY(1px);
}

.arthion-tab-btn {
    background-color: var(--color-button-normal);
    border: 1px solid var(--color-button-border);
    color: var(--color-card-text);
    transition: all 0.2s ease;
}

.arthion-tab-btn:hover {
    color: var(--color-card-text-title);
    border-color: var(--color-card-text-highlight);
}

.arthion-tab-btn.is-active {
    background-color: var(--color-button-selected);
    color: var(--color-card-text-title);
    border-color: var(--color-card-text-highlight);
    box-shadow: 0 0 12px rgba(195, 169, 132, 0.18);
}

/* ==========================================================================
   ERROR TROUBLESHOOTING CARDS & ACCORDION
   ========================================================================== */
.arthion-error-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 0.5rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.arthion-error-card:hover {
    border-color: var(--color-card-text-highlight);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.arthion-error-card.is-hidden {
    display: none !important;
}

/* ==========================================================================
   PRINCIPLE STEP CARDS (principle_01..04.webp)
   ========================================================================== */
.arthion-principle-body {
    background-color: oklch(0.2077 0.0052 39.37);
    border: 1px solid var(--color-card-border);
    border-top: none;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* ==========================================================================
   SUPPLEMENTAL TAILWIND UTILITIES NOT IN ARTHION REACT BUNDLE
   ========================================================================== */
.pt-14 { padding-top: 3.5rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-5 { padding-bottom: 1.25rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.p-3\.5 { padding: 0.875rem; }
.\!p-3\.5 { padding: 0.875rem !important; }
.\!p-4 { padding: 1rem !important; }
.gap-16 { gap: 4rem; }
.gap-3\.5 { gap: 0.875rem; }
.whitespace-nowrap { white-space: nowrap; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.arthion-footer-logo {
    height: 46px;
    width: auto;
    max-width: 145px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.h-36 { height: 9rem; }
.h-44 { height: 11rem; }
.h-56 { height: 14rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[1440px\] { max-width: 1440px; }
.max-w-\[92vw\] { max-width: 92vw; }
.min-w-\[270px\] { min-width: 270px; }
.max-h-\[78vh\] { max-height: 78vh; }
.scroll-mt-20 { scroll-margin-top: 5rem; }
.col-span-full { grid-column: 1 / -1; }
.inset-x-0 { left: 0; right: 0; }
.top-24 { top: 6rem; }
.bottom-5 { bottom: 1.25rem; }
.bottom-2\.5 { bottom: 0.625rem; }
.left-2\.5 { left: 0.625rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.4); }
.-left-3 { left: -0.75rem; }
.-right-3 { right: -0.75rem; }
.z-30 { z-index: 30; }
.border-b { border-bottom-width: 1px; }
.border-b-0 { border-bottom-width: 0; }
.border-separate { border-collapse: separate; }
.border-spacing-y-1\.5 { border-spacing: 0 0.375rem; }
.rounded-l-md { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.rounded-r-md { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.rounded-xs { border-radius: 0.125rem; }
.object-center { object-position: center; }
.items-stretch { align-items: stretch; }
.opacity-12 { opacity: 0.12; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }
.scale-105 { transform: scale(1.05); }
.ring-2 { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65); }
.backdrop-blur-xs { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.bg-green-400 { background-color: #4ade80; }
.text-green-300 { color: #86efac; }
.bg-black\/85 { background-color: rgba(0, 0, 0, 0.85); }
.bg-header-bg\/80 { background-color: rgba(22, 21, 19, 0.82); }
.bg-header-bg\/90 { background-color: rgba(22, 21, 19, 0.92); }
.bg-header-select_bg\/95 { background-color: rgba(52, 46, 38, 0.95); }
.bg-body-bg-dark\/70 { background-color: rgba(26, 23, 22, 0.72); }
.bg-body-bg-dark\/80 { background-color: rgba(26, 23, 22, 0.82); }
.bg-body-bg-dark\/85 { background-color: rgba(26, 23, 22, 0.86); }
.bg-body-bg-dark\/90 { background-color: rgba(26, 23, 22, 0.90); }
.border-card-border\/40 { border-color: rgba(107, 102, 98, 0.4); }
.border-card-border\/50 { border-color: rgba(107, 102, 98, 0.5); }
.border-card-border\/60 { border-color: rgba(107, 102, 98, 0.6); }
.border-card-border\/70 { border-color: rgba(107, 102, 98, 0.7); }
.text-card-text-title\/90 { color: rgba(252, 234, 210, 0.9); }
.text-card-text-title\/95 { color: rgba(252, 234, 210, 0.95); }
.hover\:bg-body-bg-dark\/40:hover { background-color: rgba(26, 23, 22, 0.4); }
.hover\:bg-header-select_bg:hover { background-color: var(--color-header-select_bg); }
.space-y-1\.5 > :not(:first-child) { margin-top: 0.375rem; }

@media (min-width: 640px) {
    .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .sm\:col-span-5 { grid-column: span 5 / span 5; }
    .sm\:col-span-7 { grid-column: span 7 / span 7; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:w-80 { width: 20rem; }
    .sm\:-left-4 { left: -1rem; }
    .sm\:-right-4 { right: -1rem; }
}

@media (min-width: 768px) {
    .md\:-mt-28 { margin-top: -7rem; }
    .md\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
    .lg\:-mt-36 { margin-top: -9rem; }
    .lg\:w-64 { width: 16rem; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:gap-2 { gap: 0.5rem; }
}

@media (min-width: 1280px) {
    .xl\:flex { display: flex; }
}

/* ==========================================================================
   POPOVER & MODAL TRANSITIONS
   ========================================================================== */
.arthion-popover {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.arthion-popover.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Lightbox modal */
.arthion-lightbox {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.arthion-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Custom Scrollbar matching Arthion stone theme */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-header-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-header-select_border);
}
