/* yeni.page - Global Styles */

:root {
    --yp-primary: #4361ee;
    --yp-primary-light: #eef0ff;
    --yp-card-shadow: 0 1px 3px rgba(0,0,0,.08);
    --yp-card-shadow-hover: 0 4px 12px rgba(67,97,238,.15);
    --bs-body-bg: #f4f6fc;
}

[data-bs-theme="dark"] {
    --yp-primary: #6b83f2;
    --yp-primary-light: #1a1f3d;
    --yp-card-shadow: 0 1px 3px rgba(0,0,0,.3);
    --yp-card-shadow-hover: 0 4px 12px rgba(107,131,242,.25);
    --bs-body-bg: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Logo toggle */
.logo-for-dark { display: none; }
[data-bs-theme="dark"] .logo-for-light { display: none !important; }
[data-bs-theme="dark"] .logo-for-dark { display: inline !important; }

/* Navbar */
.navbar {
    background: rgba(var(--bs-body-bg-rgb, 244, 246, 252), .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: .6rem 0;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(44, 48, 53, .75);
}

/* Tool Cards */
.tool-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    transition: all .2s ease;
    box-shadow: var(--yp-card-shadow);
    background: var(--bs-body-bg);
}

.tool-card:hover {
    box-shadow: var(--yp-card-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--yp-primary);
}

.tool-card .card-title { color: var(--bs-body-color); }

/* Tool Page */
.tool-container {
    max-width: 720px;
    margin: 0 auto;
}

.tool-container .card {
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--yp-card-shadow);
}

.result-box {
    background: var(--yp-primary-light);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Language dropdown active */
.dropdown-item.active {
    background-color: var(--yp-primary);
}

/* Primary color override */
.text-primary { color: var(--yp-primary) !important; }

/* Theme toggle */
#themeToggle {
    font-size: 1.1rem;
    line-height: 1;
}

/* Focus */
.btn:focus-visible,
.form-control:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, .25);
}

/* Footer Social */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    color: var(--bs-secondary-color);
    font-size: 1.25rem;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-social a:hover {
    color: var(--yp-primary);
    transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.cookie-banner {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-banner-content {
    padding: 24px;
}

.cookie-categories {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.category-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.category-item:last-child {
    border-bottom: none;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

@media (max-width: 576px) {
    .cookie-banner-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-banner {
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
