/* ========================================
   GENEL AYARLAR
======================================== */
:root {
    --primary-color: #0a1f2e;
    --secondary-color: #1a3a4f;
    --accent-color: #d4af37;
    --accent-light: #f0d98d;
    --dark-bg: #0a1014;
    --light-bg: #f5f7fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
======================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-light);
}

.nav-link-route {
    background: linear-gradient(135deg, #d4af37 0%, #f0d98d 100%);
    color: var(--primary-color) !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    padding: 10px 24px;
}

.nav-link-route:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #f0d98d 0%, #d4af37 100%);
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    background: linear-gradient(135deg, rgba(10, 31, 46, 0.95) 0%, rgba(26, 58, 79, 0.92) 100%),
                url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=1920') center/cover;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--accent-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
    animation: floatingLight 8s ease-in-out infinite;
}

@keyframes floatingLight {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translate(50px, 30px) scale(1.2);
        opacity: 0.25;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title i {
    color: var(--accent-color);
    font-size: 3rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.hero-subtitle {
    font-size: 4.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 0 2px 15px rgba(212, 175, 55, 0.3);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MARKET SECTION
======================================== */
.market-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-title i {
    color: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.market-container {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.market-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.market-title i {
    color: var(--accent-color);
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.market-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
}

.market-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.market-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.market-table tbody tr:hover {
    background-color: rgba(201, 169, 97, 0.05);
    transform: translateX(4px);
}

.market-table td {
    padding: 1rem;
    font-size: 1rem;
}

.market-table .currency-name {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-table .currency-name i {
    color: var(--accent-color);
}

.market-table .price {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.market-table .price.buy {
    color: var(--success-color);
}

.market-table .price.sell {
    color: var(--danger-color);
}

.market-table .change {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

.market-table .change.positive {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.market-table .change.negative {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.market-table .change.neutral {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.market-table .time {
    color: #6c757d;
    font-size: 0.9rem;
}

.update-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.05) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-radius: 8px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.update-info i {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   ABOUT SECTION
======================================== */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.03) 0%, rgba(201, 169, 97, 0.03) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.about-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0) 100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.about-card:hover .about-icon {
    transform: rotate(360deg) scale(1.15);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.about-card:hover .about-icon::after {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    inset: -15px;
}

.about-icon i {
    font-size: 2rem;
    color: var(--accent-color);
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.about-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-card h4 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-card p {
    color: #555;
    line-height: 1.8;
}

/* ========================================
   CONTACT SECTION
======================================== */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: #555;
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Harita Bölümü - Tam Genişlik */
.map-container-full {
    margin-top: 4rem;
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.map-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 2rem;
}

.map-title i {
    color: var(--accent-color);
}

.map-wrapper {
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-copyright {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   FİYAT GRAFİKLERİ
======================================== */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
    overflow: hidden;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

.chart-card canvas {
    max-width: 100%;
    height: auto !important;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.chart-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chart-title i {
    color: var(--accent-color);
}

/* ========================================
   DÖVIZ ÇEVİRİCİ - ESKİ TASARIM
======================================== */
.converter-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.converter-container {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 1920px;
    margin: 0 auto;
}

.converter-title {
    text-align: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 600;
}

.converter-wrapper {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    justify-content: center;
}

.converter-box {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.converter-box label {
    display: block;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-row {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.input-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    color: #333;
}

.input-row select {
    padding: 0.75rem 1rem;
    border: none;
    border-left: 1px solid #d0d0d0;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    cursor: pointer;
    min-width: 90px;
}

.swap-button {
    position: relative;
    width: 50px;
    top: 10px;
    height: 50px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.swap-button:hover {
    box-shadow: 0 5px 20px rgba(255, 152, 0, 0.6);
}

.swap-button i {
    display: block;
    transition: transform 0.3s ease;
}

.swap-button:hover i {
    transform: rotate(180deg);
}

.converter-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 2rem;
}

.converter-note i {
    color: var(--accent-color);
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 0;
    border-top: 2px solid var(--accent-color);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    border-radius: 8px;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.bottom-nav-item:hover i,
.bottom-nav-item:active i {
    transform: scale(1.15);
    color: var(--accent-color);
}

.bottom-nav-item:last-child {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.2) 100%);
}

.bottom-nav-item:last-child:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3) 0%, rgba(18, 140, 126, 0.3) 100%);
}

/* ========================================
   WHATSAPP FLOATING BUTTON
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-img {
        height: 100px;
    }

    .nav {
        gap: 0rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
	min-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .market-table th,
    .market-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
.market-section {
    padding: 1rem 0;
    background-color: #ffffff;
}
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Çevirici Mobil - Firebase Tasarımı */
    .converter-section {
        padding: 0rem 0;
    }

    .converter-container {
        max-width: 100%;
        padding: 1.5rem;
    }

    .converter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding-right: 60px;
    }

    .converter-box {
        max-width: 100%;
    }
    
    .converter-box label {
        text-align: left;
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .input-row input {
        flex: 1;
        padding: 0.25rem;
    }

    .input-row select { 
	padding: 0.75rem 0.25rem;
    }
    .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    }
    .swap-button {
        position: absolute;
        right: 0;
        top: 60%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .swap-button::before {
        content: '';
        width: 40px;
        height: 28px;
        border-width: 1px 1px 0 0;
        border-style: solid;
        border-color: #ff9800;
        position: absolute;
        left: 5%;
        transform: translateX(-50%);
        bottom: 100%;
        margin-bottom: 5px;
        border-radius: 0 13px 0 0;
    }

    .swap-button::after {
        content: '';
        width: 40px;
        height: 20px;
        border-width: 0 1px 1px 0;
        border-style: solid;
        border-color: #ff9800;
        position: absolute;
        left: 5%;
        transform: translateX(-50%);
        top: 100%;
        margin-top: 5px;
        border-radius: 0 0 13px 0;
    }

    /* Grafikler Mobil */
    .charts-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        max-width: 100%;
        overflow: hidden;
    }

    .chart-card {
        max-width: 100%;
        overflow: hidden;
    }

    /* WhatsApp Button Mobil */
    .whatsapp-float {
        display: none !important;
    }

    /* Bottom Nav Göster */
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    body {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .nav a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

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

    .converter-section {
        padding: 0rem 0;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    }

    .converter-container {
        padding: 1.75rem;
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .converter-title {
        font-size: 1.35rem;
        margin-bottom: 1.75rem;
        font-weight: 700;
    }

    .converter-note {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        flex-direction: column;
    }

    .market-table {
        font-size: 0.85rem;
    }

    .market-container {
        padding: 1rem;
    }
}
