/**
 * Stepper Skip - Custom Styles
 * Tailwind CSS ile birlikte kullanılır
 */

/* =========================================
   GENEL STILLER
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================
   TİPOGRAFİ
   ========================================= */

.font-mono,
code,
pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* =========================================
   FLEXBOX FIXES
   ========================================= */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.min-w-0 {
    min-width: 0;
}

/* Company bilgisi ile cevap verirken flex container'ın kırılmasını önle */
.bg-dark-200 {
    max-width: 100%;
    overflow: hidden;
}

/* =========================================
   PROSE (MARKDOWN İÇERİK)
   ========================================= */

.prose {
    line-height: 1.7;
}

.prose p {
    margin-bottom: 1rem;
}

.prose h1,
.prose h2,
.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.prose h1 { font-size: 1.75rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose pre {
    background: #141414;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

.prose a {
    color: #F9B233;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 3px solid #F9B233;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #a0a0a0;
    font-style: italic;
}

.prose img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.prose th,
.prose td {
    border: 1px solid #45475a;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.prose th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

/* =========================================
   FORM ELEMENTLERI
   ========================================= */

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Checkbox ve Radio stilleri */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #F9B233;
}

/* Placeholder stilleri */
::placeholder {
    color: #6b7280;
    opacity: 1;
}

/* Select arrow */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* =========================================
   BUTONLAR
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e5e5;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* =========================================
   KARTLAR VE CONTAINERLAR
   ========================================= */

.card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* =========================================
   ANİMASYONLAR
   ========================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* =========================================
   YARDIMCI SINIFLAR
   ========================================= */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   STL VIEWER
   ========================================= */

.stl-viewer-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #141414;
}

.stl-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.stl-controls button {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a0a0a0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.stl-controls button:hover {
    background: rgba(51, 51, 51, 0.95);
    color: white;
}

.stl-controls button.active {
    background: #F9B233;
    color: white;
    border-color: #F9B233;
}

/* =========================================
   EMBED / VIDEO / AUDIO (YouTube, SoundCloud vb.)
   ========================================= */

.embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    background: #000;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* SoundCloud gibi daha yüksek player'lar için */
.embed-responsive-soundcloud {
    padding-bottom: 166.67%; /* Yaklaşık 5:3 oran */
}

/* =========================================
   ETİKETLER
   ========================================= */

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(78, 205, 196, 0.15);
    border: 1px solid rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(78, 205, 196, 0.25);
}

/* =========================================
   ROZETLER
   ========================================= */

.badge-bronze { color: #cd7f32; }
.badge-silver { color: #c0c0c0; }
.badge-gold { color: #ffd700; }

/* =========================================
   TOOLTIP
   ========================================= */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: #1a1a1a;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* =========================================
   PRINT
   ========================================= */

/* =========================================
   MODAL SYSTEM (frontend-design aligned)
   ========================================= */

/* Modal design tokens - hem .dark hem html.dark ile tema garantisi */
.modal-container,
.app-modal-overlay {
    --modal-overlay-bg: rgba(15, 15, 22, 0.82);
    --modal-bg: #f8f6f3;
    --modal-bg-dark: #333333;
    --modal-accent: #F9B233;
    --modal-accent-hover: #E09D1C;
    --modal-border: rgba(0, 0, 0, 0.08);
    --modal-border-dark: rgba(255, 255, 255, 0.1);
    --modal-title-color: #1c1917;
    --modal-title-color-dark: #fafaf9;
    --modal-body-color: #44403c;
    --modal-body-color-dark: #d6d3d1;
    --modal-close-bg: rgba(0, 0, 0, 0.08);
    --modal-close-bg-dark: rgba(255, 255, 255, 0.1);
    --modal-close-hover: rgba(249, 178, 51, 0.22);
    --modal-close-hover-dark: rgba(249, 178, 51, 0.28);
    --modal-header-border: rgba(0, 0, 0, 0.08);
    --modal-header-border-dark: rgba(255, 255, 255, 0.1);
}

html.dark .modal-container,
html.dark .app-modal-overlay,
.dark .modal-container,
.dark .app-modal-overlay {
    --modal-overlay-bg: rgba(0, 0, 0, 0.88);
}

.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal-container.modal-closing .modal-overlay {
    animation: modalOverlayFadeOut 0.25s ease-out forwards;
}

.modal-container.modal-closing .modal-content {
    animation: modalFadeOut 0.25s ease-out forwards;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    animation: modalOverlayFadeIn 0.28s ease-out;
}

.modal-content {
    position: relative;
    z-index: 10000;
    max-width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    background: var(--modal-bg);
    color: var(--modal-body-color);
    border-radius: 16px;
    border: 1px solid var(--modal-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: default;
    animation: modalFadeIn 0.32s cubic-bezier(0.21, 0.47, 0.32, 1);
}

/* Açık tema - sıcak ton, belirgin gölge */
html:not(.dark) .modal-content {
    background: var(--modal-bg);
    border-color: var(--modal-border);
    color: var(--modal-body-color);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Koyu tema - derinlik ve hafif iç kenar */
html.dark .modal-content,
.dark .modal-content {
    background: var(--modal-bg-dark);
    border-color: var(--modal-border-dark);
    color: var(--modal-body-color-dark);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.modal-popup .modal-content {
    width: 90%;
    max-width: 560px;
}

.modal-banner .modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-height: 300px;
}

.modal-slide-in .modal-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    margin: 0;
    border-radius: 16px 0 0 16px;
    border-right: none;
    animation: slideInRight 0.35s cubic-bezier(0.21, 0.47, 0.32, 1);
}

.modal-close {
    position: absolute !important;
    top: 14px;
    left: auto;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--modal-close-bg);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    color: var(--modal-body-color);
}

html.dark .modal-close,
.dark .modal-close {
    background: var(--modal-close-bg-dark);
    color: var(--modal-body-color-dark);
}

.modal-close:hover {
    background: var(--modal-close-hover);
    color: var(--modal-accent);
    transform: scale(1.06);
}

html.dark .modal-close:hover,
.dark .modal-close:hover {
    background: var(--modal-close-hover-dark);
    color: var(--modal-accent);
}

.modal-header {
    padding: 20px 56px 18px 24px;
    border-bottom: 1px solid var(--modal-header-border);
}

html.dark .modal-header,
.dark .modal-header {
    border-bottom-color: var(--modal-header-border-dark);
}

/* Embed/video modal'da başlık tekrarını önlemek için opsiyonel gizleme */
.modal--no-title .modal-header {
    display: none;
}

.modal--no-title .modal-body {
    padding-top: 24px;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--modal-title-color);
    line-height: 1.3;
}

html.dark .modal-title,
.dark .modal-title {
    color: var(--modal-title-color-dark);
}

.modal-body {
    padding: 22px 24px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 100px);
    color: var(--modal-body-color);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.modal-body iframe {
    max-width: 100%;
    display: block;
}

html.dark .modal-body,
.dark .modal-body {
    color: var(--modal-body-color-dark);
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* App modal overlay (toast confirm/alert, badge modal) */
.app-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: modalOverlayFadeIn 0.28s ease-out;
    cursor: pointer;
}

/* Kapalıyken gizle: .hidden Tailwind ile çakışmasın (app-modal-overlay display:flex sonradan override ediyordu) */
.app-modal-overlay.hidden {
    display: none !important;
    pointer-events: none;
}

.app-modal-overlay.modal-closing {
    animation: modalOverlayFadeOut 0.25s ease-out forwards;
}

.app-modal-overlay .modal-content {
    margin: 0;
    cursor: default;
    animation: modalFadeIn 0.32s cubic-bezier(0.21, 0.47, 0.32, 1);
}

/* Rozet modal: dar kutu, büyük ekranda aşırı genişlemesin */
#badge-modal-content.modal-content {
    max-width: min(28rem, 90vw);
    width: 100%;
}

.app-modal-overlay.modal-closing .modal-content {
    animation: modalFadeOut 0.25s ease-out forwards;
}

/* Buttons inside modal-body (confirm/alert) */
.modal-body .alert-ok {
    background: var(--modal-accent) !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.05s ease;
}

.modal-body .alert-ok:hover {
    background: var(--modal-accent-hover) !important;
}

.modal-body .confirm-ok {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.05s ease;
}

.modal-body .confirm-cancel {
    background: var(--modal-close-bg) !important;
    color: var(--modal-body-color) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
}

.dark .modal-body .confirm-cancel {
    background: var(--modal-close-bg-dark) !important;
    color: var(--modal-body-color-dark) !important;
}

@keyframes modalOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalOverlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .modal-content,
    .app-modal-overlay .modal-content {
        max-width: 95%;
        margin: 2.5vh auto;
    }
    
    .modal-slide-in .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px 18px;
    }
}

@media print {
    nav,
    footer,
    .no-print,
    .modal-container {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
    }
}



