﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #f5f5f7 0%, #ffffff 100%);
    color: #1c1c1e;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.2px;
}

main {
    flex: 1 0 auto;
}

/* === NAVBAR === */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 18px 18px;
    transition: all 0.3s ease;
}

.logo-area img {
    width: 160px;
    height: auto;
    transition: transform 0.25s ease;
}

    .logo-area img:hover {
        transform: scale(1.05);
    }

.glass-nav .nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-weight: 500;
}

    .glass-nav .nav-link:hover {
        background: rgba(0,122,255,0.1);
        color: #007aff;
    }

    .glass-nav .nav-link.active-link {
        background: rgba(0,122,255,0.15);
        color: #007aff;
        box-shadow: inset 0 -2px 0 #007aff;
    }

/* === FOOTER === */
.glass-footer {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 20px 20px 0 0;
}

    .glass-footer small {
        color: #666;
        letter-spacing: 0.3px;
    }

/* === CARD === */
.card, .glass-card {
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

    .card:hover, .glass-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

.card-header {
    border: none;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    border-radius: 14px 14px 0 0;
    font-weight: 600;
    color: #1c1c1e;
}

/* === BUTTONS === */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.55rem 1.2rem;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #007aff, #1e90ff);
    border: none;
    color: #fff;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1e90ff, #007aff);
        transform: translateY(-1px);
    }

.btn-outline-secondary {
    border: 1px solid #d0d0d0;
    color: #333;
}

    .btn-outline-secondary:hover {
        background: rgba(0,0,0,0.05);
        color: #000;
    }

.btn-success {
    background: linear-gradient(135deg, #34c759, #2db74f);
    border: none;
}

    .btn-success:hover {
        background: linear-gradient(135deg, #2db74f, #34c759);
    }

/* === FORMS === */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

    .form-control:focus, .form-select:focus {
        border-color: #007aff;
        box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
    }

/* Cihaz seçilmeden önce gizli paneller */
.device-panel-hidden,
.device-panel-hidden.d-flex,
.device-panel-hidden.d-block,
.device-panel-hidden.card {
    display: none !important;
}

/* === PREVIEW === */
#previewContainer, #svgContainer {
    background: rgba(245, 245, 247, 0.55);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

/* === BADGE === */
.badge-soft {
    background: rgba(0,122,255,0.1);
    color: #007aff;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

/* === HERO === */
.hero h1 {
    font-size: 2.3rem;
    color: #111;
}

.hero p {
    color: #555;
}

.hero .card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    backdrop-filter: blur(12px);
}

/* === ICON MODAL === */
#iconModal .modal-content {
    border-radius: 16px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.3);
}

.icon-item {
    transition: all 0.2s ease;
}

    .icon-item:hover {
        background: rgba(0,122,255,0.08);
        transform: scale(1.05);
        cursor: pointer;
    }

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.25);
    }

/* === ANIMATIONS === */
.animate-header {
    animation: fadeSlideDown 0.6s ease both;
}

.animate-footer {
    animation: fadeSlideUp 0.6s ease both;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* === RESPONSIVE GLASS NAV === */
.navbar-toggler {
    transition: all 0.2s ease;
    border-radius: 8px;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler:hover {
        background: rgba(0, 0, 0, 0.05);
    }

/* Mobil menü görünümü */
@media (max-width: 768px) {
    .glass-nav {
        padding: 0.6rem 1rem;
        border-radius: 0 0 16px 16px;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 6px 25px rgba(0,0,0,0.08);
        animation: fadeSlideDown 0.35s ease both;
    }

    .glass-nav .nav-link {
        display: block;
        width: 100%;
        padding: 0.5rem;
        border-radius: 10px;
    }

        .glass-nav .nav-link:hover {
            background: rgba(0,122,255,0.1);
        }
}
