/* ==============================================================
   TRENDTUCCAR BUSINESS TOOLS SHARED STYLES
   tools_common.css - Shared Calculator & Tool Layouts
   ============================================================== */

:root {
    --bg-1: #f8fafc;
    --bg-2: #e2e8f0;
    --card: #ffffff;
    --radius: 16px;
    --muted: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    text-align: center;
    margin-bottom: 44px;
    margin-top: 140px;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: #203341;
}

.header p {
    color: var(--muted);
    margin: 0;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-section,
.preview-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: fit-content;
    transition: all 0.3s ease;
}

/* Mobil performans: Hover sadece masaüstünde */
@media (hover: hover) and (pointer: fine) {
    .input-section:hover,
    .preview-section:hover {
        transform: translateY(-3px);
    }
}

.section-title {
    font-size: 1.5em;
    color: #203341;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    color: #203341;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: -webkit-fill-available;
    padding: 12px 15px;
    border: 2px solid var(--bg-2);
    border-radius: calc(var(--radius) / 2);
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #203341;
    box-shadow: 0 0 0 3px rgba(32, 51, 65, 0.1);
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--bg-2);
    border-radius: calc(var(--radius) / 2);
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #203341;
    box-shadow: 0 0 0 3px rgba(32, 51, 65, 0.1);
}

.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-1);
    padding: 8px;
    border-radius: calc(var(--radius) / 2);
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: calc(var(--radius) / 2.5);
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-btn.active {
    background: #1e293b;
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.result-container {
    background: var(--bg-1);
    border-radius: calc(var(--radius) / 2);
    padding: 30px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-label {
    font-weight: 600;
    color: #475569;
    font-size: 1.1em;
}

.result-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #0f172a;
}

.result-item.highlight {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
}

.result-item.highlight .result-label,
.result-item.highlight .result-value {
    color: white;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: calc(var(--radius) / 2);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Mobil performans: Backdrop filter mobilde kaldır */
@media (max-width: 768px) {
    .stat-card {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }
}

.stat-label {
    font-size: 0.85em;
    color: var(--muted);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #0f172a;
}

#customRateInput {
    display: none;
}

#customRateInput.active {
    display: block;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .result-container {
        padding: 0px;
        background: none;
    }
}

.icon {
    width: 20px;
    height: 20px;
}


/* ==============================================================
   BUSINESS TOOLS PREMIUM ANIMATED BANNER
   ============================================================== */
.premium-banner-wrapper {
            position: absolute;
            width: 100%;
            overflow: hidden;
            background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
            height: 60px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            margin-top: 80px;
        }

        .banner-track {
            display: flex;
            align-items: center;
            height: 100%;
            will-change: transform;
        }

        .banner-content {
            display: flex;
            align-items: center;
            gap: 80px;
            padding: 0 40px;
            white-space: nowrap;
        }

        .banner-item {
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }

        .banner-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #ff0087 0%, #7c3aed 100%);
            border-radius: 50%;
            padding: 5px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }

        .banner-icon svg {
            width: 100%;
            height: 100%;
            fill: #fff;
        }

        .banner-text {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .banner-highlight {
            background: linear-gradient(135deg, #ff0087 0%, #7c3aed 100%);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }

        .banner-separator {
            width: 2px;
            height: 20px;
            background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        }

        .premium-banner-wrapper:hover .banner-track {
            /* hover duraklatma JS ile kontrol edilecek */
        }

        /* Responsive */
        @media(max-width:1024px) {
            .premium-banner-wrapper {
                height: 55px;
            }

            .banner-text {
                font-size: 15px;
            }

            .banner-content {
                gap: 60px;
                padding: 0 30px;
            }

            .banner-icon {
                width: 22px;
                height: 22px;
            }

            .banner-highlight {
                font-size: 12px;
                padding: 5px 14px;
            }
        }

        @media(max-width:768px) {
            .premium-banner-wrapper {
                height: 50px;
            }
            .section-title{
                font-size: 1.3em;
            }
            .banner-text {
                font-size: 14px;
            }

            .banner-content {
                gap: 50px;
                padding: 0 25px;
            }

            .banner-icon {
                width: 20px;
                height: 20px;
            }

            .banner-highlight {
                font-size: 11px;
                padding: 4px 12px;
            }

            .banner-separator {
                height: 16px;
            }
            .result-container {
                background: none;
                padding: 0px;
            } 
            .result-label {
                font-size: 1em;
            }       
            .result-value{
                font-size: 1.2em;
            }                
        }

        @media(max-width:480px) {
            .premium-banner-wrapper {
                height: 45px;
            }

            .banner-text {
                font-size: 12px;
            }

            .banner-content {
                gap: 40px;
                padding: 0 20px;
            }

            .banner-icon {
                width: 18px;
                height: 18px;
            }

            .banner-highlight {
                font-size: 10px;
                padding: 3px 10px;
            }

            .banner-item {
                gap: 8px;
            }
        }

        /* Mobil performans: CSS animasyonları mobilde kaldır */
        @media (max-width: 1024px) {

            .banner-icon,
            .banner-highlight {
                animation: none;
            }

            .banner-icon {
                transform: scale(1);
            }

            .banner-highlight {
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
            }
        }

        /* Reduced motion */
        @media (prefers-reduced-motion: reduce) {

            .banner-track,
            .banner-icon,
            .banner-highlight {
                animation: none;
            }
        }
