/* * assets/design-system.css
 * PortaVisa UI STYLES v5.0
 * -----------------------------------------
 * Global chrome + PortaVisa explorer/card styles.
 */

/* 1. FONTS & RESETS */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Inter:wght@400;700;900&display=swap');

html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    /* Tailwind'in varsayılanı üzerine yumuşak geçişler için */
}

/* Custom Font Utilities */
.font-comic {
    font-family: 'Comic Neue', cursive, sans-serif !important;
}

/* 2. DESKTOP HOVER LOGIC (min-width: 768px) */
@media (min-width: 768px) {
    
    /* Sağ Üst Buton Grubu */
    .action-group-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Sadece Mouse Kullananlar İçin Hover (iOS/Dokunmatik Fix) */
    @media (hover: hover) {
        .pv-card:hover {
            box-shadow: 6px 6px 0px 0px #000;
            transform: translate(-2px, -2px);
        }

        /* Dil Menüsü Hover */
        .lang-dropdown:hover .lang-menu {
            display: block;
        }
    }
}

/* 3. MOBILE COMPONENTS (max-width: 768px) */
@media (max-width: 768px) {
    
    /* Tool Action Bar (Clear - Copy - Share) */
    .mobile-action-bar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 12px;
    }
    
    /* Kare İkon Butonlar */
    .icon-btn { 
        width: 44px; height: 44px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        border: 2px solid #E5E5E5; border-radius: 12px; color: #000;
        background: white; transition: all 0.2s;
    }
    .icon-btn:active { background: #f5f5f5; transform: scale(0.95); }

    /* Geniş Copy Butonu */
    .copy-btn-mobile { 
        flex-grow: 1; height: 44px;
        background-color: #E5E5E5 !important; 
        color: #000 !important; 
        border: 2px solid #E5E5E5 !important; 
        border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
    }

    /* MOBİL ALT MENÜ (Turuncu Bar) */
    .mobile-app-bar {
        position: fixed; bottom: 20px; left: 50%;
        transform: translateX(-50%); width: calc(100% - 32px);
        max-width: 380px; height: 56px; 
        background: #FF4F00; 
        border-radius: 14px; display: flex; justify-content: space-around; 
        align-items: center; z-index: 1000; 
        box-shadow: 0 8px 24px rgba(255, 79, 0, 0.35);
    }
    .app-bar-item { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; }
    
    /* KAHVE BUTONU (Siyah Daire / Beyaz İkon) */
    .app-bar-coffee {
        background: #000000; 
        width: 56px; height: 56px;
        border-radius: 9999px; display: flex; align-items: center; justify-content: center;
        margin-top: -30px; 
        border: none;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25); 
        color: white; 
    }
    
    /* ÇEKMECE (Drawer) */
    .app-drawer {
        position: fixed; bottom: -100%; left: 0; width: 100%;
        background: #F2F2F2; border-radius: 24px 24px 0 0;
        z-index: 2000; transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 24px 24px 100px 24px; 
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15); border-top: 1px solid #e5e5e5;
        max-height: 85dvh;
        overflow-y: auto; pointer-events: none;
    }
    .app-drawer.open { bottom: 0; pointer-events: auto; }
    
    /* Overlay */
    .drawer-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px);
        z-index: 1500; opacity: 0; pointer-events: none; transition: opacity 0.3s;
    }
    .drawer-overlay.open { opacity: 1; pointer-events: auto; }
}

/* 4. MODALS (Share) */
.share-modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    background: white; padding: 24px; border-radius: 24px; border: 2px solid black;
    box-shadow: 8px 8px 0px 0px black; z-index: 3000; width: 90%; max-width: 320px;
    opacity: 0; pointer-events: none; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.share-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.share-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.2); backdrop-filter: blur(2px);
    z-index: 2900; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.share-overlay.open { opacity: 1; pointer-events: auto; }

/* 5. PORTAVISA EXPLORER & ARTICLES */
.prose { line-height: 1.45; color: #4a4a4a; }
.pv-link {
    color: #FF4F00;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(255, 79, 0, 0.2);
    transition: all 0.2s ease;
}
.pv-link:hover { border-bottom-color: #FF4F00; background-color: rgba(255, 79, 0, 0.05); }
.prose p { margin-bottom: 1rem; }
.prose ul { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.25rem; }

.search-section { padding: 4rem 0 2rem; display: flex; justify-content: center; }
.search-wrapper { position: relative; width: 100%; max-width: 700px; }
.search-input {
    width: 100%; background-color: white; border: 2px solid #e5e5e5;
    border-radius: 999px; padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    font-family: ui-monospace, monospace; font-size: 1rem; outline: none; transition: all 0.2s ease;
}
.search-input:hover, .search-input:focus {
    border: 2px solid #FF4F00;
}
.search-icon { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: #a3a3a3; }
.search-input:focus + .search-icon { color: #FF4F00; }

.nav-panel {
    width: 100%; background: white; border: 2px solid #000;
    border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; margin-bottom: 4rem;
}
.main-nav { display: flex; background: #f0f0f0; border-bottom: 1px solid #e5e5e5; }
.nav-tab {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 1.25rem; cursor: pointer; transition: all 0.2s ease;
    color: #737373; font-family: ui-monospace, monospace; font-weight: 700;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; border-right: 1px solid #e5e5e5;
    background: transparent;
}
.nav-tab:last-child { border-right: none; }
.nav-tab.active { background: #FF4F00; color: white; }
.nav-tab.active svg { stroke: white; }
.nav-tab:hover:not(.active) { background: #e5e5e5; color: black; }
.nav-tab svg { width: 18px; height: 18px; stroke-width: 2.5; }

.sub-nav { display: flex; gap: 12px; padding: 14px 24px; background: #ffffff; justify-content: center; overflow-x: auto; }
.sub-pill {
    padding: 6px 16px; font-family: ui-monospace, monospace; font-size: 10px; font-weight: 700;
    text-transform: uppercase; color: #a3a3a3; border-radius: 999px; transition: all 0.2s; white-space: nowrap;
    background: transparent; border: 0; cursor: pointer;
}
.sub-pill:hover:not(.active) { color: black; background: #f5f5f5; }
.sub-pill.active { background: #FF4F00; color: white; }

.pv-card {
    border: 2px solid #000; border-radius: 24px; background: white;
    overflow: hidden; transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative;
}
.card-footer { background-color: #fafafa; border-top: 2px solid #000; padding: 1.5rem 2rem; }

.fav-btn { transform: scale(1.1); transition: all 0.2s ease; margin-right: -6px; margin-top: -6px; background: transparent; border: 0; cursor: pointer; padding: 4px; }
.fav-btn svg { stroke: #d4d4d4; transition: all 0.2s; }
.fav-btn:hover svg { stroke: #FF4F00; }
.fav-btn.active svg { fill: #FF4F00; stroke: #FF4F00; }

.action-btn {
    background: white; border: 2px solid #e5e5e5; border-radius: 12px;
    padding: 8px 16px; color: black; font-family: ui-monospace, monospace; font-size: 0.75rem;
    font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: all 0.2s;
    cursor: pointer;
}
.action-btn:hover { border-color: #000; background: #fdfdfd; }
.action-btn:active { transform: translateY(1px); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

@media (max-width: 768px) {
    .nav-tab {
        flex-direction: column;
        padding: 1rem 0.5rem;
        gap: 6px;
    }
    .nav-tab span { font-size: 9px; letter-spacing: 0.05em; }
    .nav-tab svg { width: 20px; height: 20px; }

    .card-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    .action-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 10px;
    }
}