/* ============================================
   CURRENCY CONVERTER — Nur Kartları Tasarım Dili
   Ana Site Design System Uyarlanmış
   ============================================ */

/* --------------------------------------------
   1. ROOT VARIABLES
   -------------------------------------------- */

:root {
    --primary-color: #A06872;
    --primary-dark: #8E5A65;
    --primary-light: #CC8E98;

    --secondary-color: #FDF5E6;
    --accent-color: #9E7F7F;
    --accent-warm: #E6C9C9;

    --bg-color: #FFF9F9;
    --bg-secondary: #FFF0F5;
    --card-bg: #FFFFFF;

    --text-primary: #4E342E;
    --text-secondary: #8D6E63;
    --text-muted: #A89080;

    --border-color: #F0E6E6;
    --divider: #F5E8E8;

    --shadow-sm: 0 2px 8px rgba(183, 110, 121, 0.1);
    --shadow-md: 0 4px 15px rgba(183, 110, 121, 0.15);
    --shadow-lg: 0 8px 25px rgba(183, 110, 121, 0.2);

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* --------------------------------------------
   2. BASE RESET
   -------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-color);
    background-image: radial-gradient(
        circle at 50% 0%,
        var(--bg-secondary) 0%,
        var(--bg-color) 55%
    );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

/* --------------------------------------------
   3. PANEL
   -------------------------------------------- */

#currency-converter {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
}

/* Başlık — markup'a dokunmadan CSS'ten */
#currency-converter h2 {
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.3px;
    line-height: 1.25;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--divider);
    margin-bottom: var(--spacing-md);
}

/* --------------------------------------------
   4. FORM GROUPS
   -------------------------------------------- */

#currency-converter label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

#currency-converter input,
#currency-converter select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: var(--spacing-md);
}

#currency-converter select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238D6E63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
    cursor: pointer;
}

#currency-converter input:hover,
#currency-converter select:hover {
    border-color: var(--primary-light);
    background-color: var(--bg-secondary);
}

#currency-converter input:focus,
#currency-converter select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(160, 104, 114, 0.15);
}

#currency-converter input::placeholder {
    color: var(--text-muted);
}

/* --------------------------------------------
   5. RESULT DISPLAY
   -------------------------------------------- */

#result {
    width: 100%;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    margin-top: var(--spacing-md);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base), border-color var(--transition-base);
}

#result:not(:empty) {
    animation: resultFadeIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------
   6. RESPONSIVE
   -------------------------------------------- */

@media (max-width: 440px) {
    #currency-converter {
        padding: var(--spacing-md);
    }

    #currency-converter h2 {
        font-size: 1.4rem;
    }

    #result {
        font-size: 1.3rem;
        padding: 14px;
    }
}

@media (max-width: 390px) {
    #currency-converter input,
    #currency-converter select {
        height: 44px;
        font-size: 0.95rem;
    }

    #currency-converter label {
        font-size: 0.85rem;
    }
}

/* --------------------------------------------
   7. REDUCED MOTION
   -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    #currency-converter input,
    #currency-converter select,
    #result {
        transition: none;
    }

    #currency-converter input:hover,
    #currency-converter select:hover,
    #currency-converter input:focus,
    #currency-converter select:focus {
        transform: none;
    }

    #result {
        animation: none;
    }
}