﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

h2 {
    font-weight: 700;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.converter-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    padding: 40px 40px 15px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    max-width: 600px; 
    box-sizing: border-box;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; 
    min-width: 160px; 
}

.input-group label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #7f8c8d;
}

/* Ana Giriş Kutuları */
input.tarih {
    width: 150px;
    height: 60px;
    font-size: 32px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

input.tarih:focus {
    outline: none;
    border-color: #3498db;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

/* Ok işareti */
.arrow-icon {
    font-size: 2rem;
    color: #bdc3c7;
    padding-top: 45px;
    width: 40px;
    text-align: center;
}

/* Alt bilgi inputları (Arapça/Roma rakamları) */
.lockedarabic,
.lockedroman {
    margin-top: 5px;
	margin-bottom: -15px;
    border: none;
    background: transparent;
    text-align: center;
    color: #95a5a6;
    width: 100%;
}

.lockedarabic {
	margin-top: 0px;
    font-size: 28px;
    font-family: 'Traditional Arabic', 'Amiri', serif;
    font-weight: 600;
}

.lockedroman {
    font-size: 20px;
    letter-spacing: 1px;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
}

/* "XX yıl öncesi" sonucu */
.pastyear-result {
    margin-top: 0px;
	padding-top: 0px;
    width: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: 500;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.footer-links p {
    color: #bdc3c7;
    margin-top: 20px;
}

@media (max-width: 600px) {
    h2 { font-size: 2rem; margin-bottom: 20px; margin-top: 5px; }
    .main-container { padding: 10px; }
    .converter-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 380px;
        padding: 20px 15px;
        gap: 15px;
        margin: 0 auto;
    }
    .input-group { width: 100%; min-width: 0; margin: 0px 0px 0px -20px; }
    .arrow-icon { transform: rotate(90deg); padding: 0; margin: 0px 0px 0px -20px;; width: auto; }
	input.tarih { 
        width: 150px; 
    }
}


/* Buton Stili */
.btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    background-color: #3498db;
    color: white !important;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.btn-link:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.language-switch {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
}

.language-switch a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.language-switch a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

.language-switch a:active {
    transform: scale(0.96);
}




/* Form Elemanları (Genel) */
select,
input.date-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
    margin: 5px;
}

select:focus,
input.date-input:focus {
    outline: none;
    border-color: #3498db;
}

/* Tarih Çevirici Sayfası Özel */
.date-converter-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 20px;
}

.date-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.date-column h3 {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-weight: 400;
    font-size: 1.2rem;
}

.result-day {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.result-day input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #e67e22;
    font-weight: bold;
    text-align: center;
    width: 150px;
}

/* Tarih Çevirici Mobil Düzeltmeleri */
@media (max-width: 600px) {
    .date-converter-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .date-column {
        width: 100%;
    }

    select,
    input.date-input {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Info İkonu */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #007bff; /* Mavi renk */
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-family: 'Georgia', serif;
    font-style: italic;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-icon:hover {
    background-color: #0056b3;
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 25px;
    border-radius: 8px;
    width: 80%; 
    max-width: 500px;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content h3 {
    margin-top: 0;
    color: #007bff;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-family: 'Georgia', serif;
    font-style: italic;
    cursor: pointer;
    font-weight: bold;
}