/* Kurumsal, modern ve profesyonel tasarım */
/* Roboto font loading for better performance */
@font-face {
    font-family: 'Roboto';
    font-display: swap;
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-display: swap;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Roboto-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-display: swap;
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Roboto-Bold.woff2') format('woff2');
}

/* Font Awesome - Local loading */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/fa-brands-400.woff2') format('woff2');
}

/* Local fonts loaded successfully */

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    /* Sade, kurumsal, göz yormayan arka plan */
    background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0 32px;
}

h1 {
    color: #0d2340;
    margin-bottom: 12px;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

p {
    color: #3a4660;
    font-size: 1.08rem;
    margin-bottom: 22px;
    font-weight: 500;
}

label {
    font-weight: 600;
    color: #0d2340;
    margin-right: 6px;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

select, input[type="date"] {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #bfc9d9;
    font-size: 1rem;
    margin-right: 12px;
    background: #f7fafd;
    color: #222;
    outline: none;
    font-weight: 500;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1px 4px #3a5ba012;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

select:focus, input[type="date"]:focus {
    border: 1.5px solid #3a5ba0;
    background: #f0f4fa;
    box-shadow: 0 0 0 2px #3a5ba033;
}

/* Custom arrow for select */
select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%233a5ba0" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 38px;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.3) sepia(0.2) saturate(2) hue-rotate(180deg);
    cursor: pointer;
}

button {
    background: #1976d2;
    color: #fff;
    border: 1.5px solid #1976d2;
    padding: 14px 36px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.13rem;
    font-weight: 700;
    margin: 20px 0 28px 0;
    box-shadow: 0 2px 8px #1976d220;
    letter-spacing: 0.5px;
    transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s, transform 0.1s;
}

button:hover, button:focus {
    background: #0d2340;
    color: #fff;
    border: 1.5px solid #0d2340;
    box-shadow: 0 4px 16px #0d234040;
    transform: translateY(-2px) scale(1.03);
}

#error {
    color: #d32f2f;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.08rem;
}

#loading {
    color: #1976d2;
    margin-bottom: 16px;
    font-weight: 500;
}

.eczane-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 24px;
    padding: 0;
}

@media (max-width: 900px) {
    .container {
        padding: 0 6px;
    }
    .eczane-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.eczane-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 #7b8cff22;
    padding: 28px 28px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    min-width: 0;
    border: none;
    margin-bottom: 0;
}

.eczane-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.eczane-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #d32f2f;
    border-radius: 0;
}

.eczane-avatar-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    background: #fff;
}

.eczane-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 2px;
}

.eczane-district {
    color: #3a5ba0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2px;
    display: inline-block;
}

.eczane-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2px;
}

.eczane-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3a4a;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.eczane-info-row i {
    color: #7b8cff;
    font-size: 1.1rem;
    min-width: 18px;
    text-align: center;
}

.eczane-actions {
    display: flex;
    gap: 14px;
    margin-top: -10px;
    margin-bottom: -20px;
}

.eczane-btn {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    padding: 13px 0;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    box-shadow: 0 2px 8px #7b8cff22;
}

.eczane-btn.call {
    background: #4caf50;
    border: 1.5px solid #4caf50;
    color: #fff;
}
.eczane-btn.call i {
    color: #fff;
}
.eczane-btn.call:hover {
    background: #388e3c;
    border: 1.5px solid #388e3c;
    transform: translateY(-1px) scale(1.03);
}

.eczane-btn.map {
    background: linear-gradient(90deg, #6a8bbf 60%, #3a5ba0 100%);
    color: #fff;
}
.eczane-btn.map i {
    color: #fff;
}
.eczane-btn.map:hover {
    background: linear-gradient(90deg, #3a5ba0 60%, #6a8bbf 100%);
    transform: translateY(-1px) scale(1.03);
}

.eczane-header-area {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px #3a5ba012;
    border: 1.5px solid #e3e8ee;
    padding: 36px 32px 28px 32px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eczane-header-flex {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
    width: 100%;
}

.eczane-header-flex > span {
    width: 80px !important;
    height: 80px !important;
    font-size: 3.7rem !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    margin-top: 0 !important;
    box-sizing: content-box;
}

.site-logo {
    display: block;
    height: 54px;
    width: auto;
    object-fit: contain;
    margin-right: 0;
    margin-bottom: 0;
    margin-top: 8px;
}

.eczane-header-icon {
    font-size: 2.8rem;
    color: #3a5ba0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg,#e9eef5 60%,#d0e2f2 100%);
    border-radius: 16px;
    box-shadow: 0 2px 8px #3a5ba012;
    flex-shrink: 0;
}

.eczane-header-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.eczane-header-area h1 {
    color: red !important;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 1.1;
}

.eczane-header-area .eczane-header-slogan {
    color: #c12525;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.eczane-header-area p {
    color: #4a5876;
    font-size: 1.08rem;
    margin-bottom: 38px;
    font-weight: 500;
    margin-top: 10px;
}

#aramaForm {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-bottom: 0;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 12px;
    box-sizing: border-box;
}

.form-field {
    flex: 1 1 0;
    max-width: 220px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 44px;
}

#aramaForm button[type="submit"] {
    height: 44px;
    font-size: 1.05rem;
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 900px) {
    #aramaForm button[type="submit"] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0;
        margin-top: 10px;
        height: 44px;
        font-size: 1.05rem;
        padding: 0 10px;
    }
}

#il, #ilce, #date {
    height: 44px;
    font-size: 1.05rem;
    padding: 0 10px;
    border-radius: 8px;
    min-width: 120px;
    max-width: 220px;
    width: 100%;
    box-sizing: border-box;
    line-height: 44px;
}

#date {
    min-width: 120px;
    max-width: 220px;
    width: 100%;
    height: 44px;
    font-size: 1.05rem;
    padding: 0 10px;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: 44px;
}

@media (max-width: 900px) {
    #aramaForm {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
    }
    .form-field {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
        margin-bottom: 16px;
        height: auto;
    }
    #aramaForm label {
        margin-bottom: 8px;
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    #il, #ilce, #date {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
} 

.eczane-info-row.nobet-bilgi, .eczane-info-row.nobet-bilgi i {
    color: #c62828 !important;
}
.eczane-info-row .fa-clock {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    color: #4a5876 !important;
} 

.eczane-info-row.nobet-bilgi .fa-clock {
    color: #7b8cff !important;
} 

.eczane-info-row.uyari-mesaj {
    color: #d32f2f !important;
    font-weight: 600;
}



.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.89rem;
    color: #4a5876;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 36px auto 10px auto;
    padding-bottom: 8px;
} 

@media (max-width: 700px) {
    .eczane-header-flex > span {
        width: 48px !important;
        height: 48px !important;
        font-size: 2.2rem !important;
        margin-top: 0 !important;
    }
    .eczane-header-flex {
        align-items: center !important;
    }
} 

/* Responsive Menü Stilleri */
.mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3a5ba0 0%, #2c4a7a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(58, 91, 160, 0.3);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 91, 160, 0.4);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #3a5ba0 0%, #2c4a7a 100%);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 30px 20px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.mobile-menu-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.mobile-menu-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Mobil cihazlarda ek düzenlemeler */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        margin: 20px auto;
    }
    
    .eczane-header-area {
        margin-top: 80px;
    }
}

/* Tablet boyutunda da ek düzenlemeler */
@media (max-width: 1024px) {
    .eczane-header-area {
        margin-top: 80px;
    }
}