/* =========================================================
   MEDYABİR PRO - NÖBETÇİ ECZANE MODÜLÜ
   Dosya: modules/nobetci_eczane/style.css
   Amaç:
   - Diğer ana sayfa modülleriyle aynı 1240px sınır
   - Yazarlar modülüyle aynı dış genişlik mantığı
   - Şık, kompakt, haber sitesi uyumlu görünüm
========================================================= */

.home-ne-section-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 30px auto !important;
    padding: 24px 16px 26px 16px !important;
    background:
        radial-gradient(circle at top left, rgba(22, 101, 52, .08), transparent 34%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow:
        0 4px 10px -2px rgba(0,0,0,0.025),
        0 -4px 10px -2px rgba(0,0,0,0.025);
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.container .home-ne-section-wrapper,
.container > .home-ne-section-wrapper {
    width: calc(100% + 32px) !important;
    max-width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

.container.home-ne-section-wrapper {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* =========================================================
   BAŞLIK
========================================================= */

.home-ne-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.home-ne-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.home-ne-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #166534 0%, #315f7d 100%);
    box-shadow: 0 10px 22px rgba(22, 101, 52, .18);
    font-size: 20px;
}

.home-ne-heading-text {
    min-width: 0;
}

.home-ne-heading-text span {
    display: block;
    margin-bottom: 3px;
    color: #166534;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-ne-heading-text h2 {
    margin: 0;
    color: #172033;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.home-ne-heading-text p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.home-ne-all-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border-radius: 8px;
    color: #ffffff;
    background: #315f7d;
    border: 1px solid #244a64;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    text-decoration: none;
    transition: .22s ease;
}

.home-ne-all-btn:hover {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================================
   LİSTE
========================================================= */

.home-ne-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-ne-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, .04);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-ne-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.home-ne-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.home-ne-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none;
}

.home-ne-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.home-ne-logo i {
    color: #16a34a;
    font-size: 26px;
}

.home-ne-content {
    min-width: 0;
    flex: 1;
}

.home-ne-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    margin-bottom: 7px;
}

.home-ne-title-row a {
    min-width: 0;
    text-decoration: none;
}

.home-ne-title-row h3 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .22s ease;
}

.home-ne-card:hover .home-ne-title-row h3 {
    color: #166534;
}

.home-ne-status {
    min-height: 27px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.home-ne-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.home-ne-meta span {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 750;
}

.home-ne-meta i {
    color: #315f7d;
}

.home-ne-address {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.home-ne-address i {
    color: #315f7d;
    margin-top: 3px;
    flex: 0 0 auto;
}

/* =========================================================
   BUTONLAR
========================================================= */

.home-ne-actions {
    width: 92px;
    flex: 0 0 92px;
    display: grid;
    gap: 7px;
    align-content: center;
}

.home-ne-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    transition: .2s ease;
}

.home-ne-action.call {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.home-ne-action.route {
    color: #315f7d;
    background: #edf3f7;
    border: 1px solid #c5d7e2;
}

.home-ne-action.detail {
    color: #ffffff;
    background: #315f7d;
    border: 1px solid #315f7d;
}

.home-ne-action:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
}

/* =========================================================
   BOŞ DURUM
========================================================= */

.home-ne-empty {
    min-height: 130px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
}

.home-ne-empty-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    font-size: 24px;
}

.home-ne-empty strong {
    display: block;
    color: #172033;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 4px;
}

.home-ne-empty p {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.home-ne-empty a {
    color: #315f7d;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {
    .home-ne-section-wrapper,
    .container .home-ne-section-wrapper,
    .container > .home-ne-section-wrapper,
    .container.home-ne-section-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 24px auto !important;
        padding: 24px 14px 26px 14px !important;
    }

    .home-ne-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 768px) {
    .home-ne-section-wrapper,
    .container .home-ne-section-wrapper,
    .container > .home-ne-section-wrapper,
    .container.home-ne-section-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 22px 12px 24px 12px !important;
        border-radius: 8px;
        overflow: hidden !important;
    }

    .home-ne-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-ne-heading {
        align-items: flex-start;
    }

    .home-ne-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 12px;
        font-size: 17px;
    }

    .home-ne-heading-text h2 {
        font-size: 20px;
    }

    .home-ne-heading-text p {
        font-size: 12px;
    }

    .home-ne-all-btn {
        width: 100%;
    }

    .home-ne-card {
        display: block;
    }

    .home-ne-card-main {
        display: flex;
    }

    .home-ne-title-row {
        display: block;
    }

    .home-ne-status {
        margin-top: 7px;
    }

    .home-ne-actions {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 12px;
        padding-top: 11px;
        border-top: 1px solid #e2e8f0;
    }

    .home-ne-action {
        min-height: 39px;
        font-size: 11.5px;
    }
}

/* =========================================================
   KÜÇÜK MOBİL
========================================================= */

@media (max-width: 420px) {
    .home-ne-section-wrapper {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .home-ne-card-main {
        gap: 10px;
    }

    .home-ne-logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .home-ne-title-row h3 {
        font-size: 15px;
    }

    .home-ne-actions {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   MOBİL REVİZE - KOMPAKT GÖRÜNÜM
   Amaç:
   - Mobilde logo/ikon alanları küçülsün
   - Başlık alanı daha az yer kaplasın
   - Kullanıcı nöbetçi eczaneleri görmek için çok aşağı inmesin
   - Masaüstü tasarım korunur
========================================================= */

@media (max-width: 768px) {
    .home-ne-section-wrapper,
    .container .home-ne-section-wrapper,
    .container > .home-ne-section-wrapper,
    .container.home-ne-section-wrapper {
        margin: 12px auto !important;
        padding: 12px 10px 14px 10px !important;
        border-radius: 8px !important;
    }

    .home-ne-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .home-ne-heading {
        align-items: center !important;
        gap: 9px !important;
        min-width: 0 !important;
    }

    .home-ne-mark {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        box-shadow: none !important;
    }

    .home-ne-heading-text {
        min-width: 0 !important;
    }

    .home-ne-heading-text span {
        margin-bottom: 2px !important;
        font-size: 9px !important;
        letter-spacing: .08em !important;
        line-height: 1.1 !important;
    }

    .home-ne-heading-text h2 {
        font-size: 17px !important;
        line-height: 1.16 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .home-ne-heading-text p {
        display: none !important;
    }

    .home-ne-all-btn {
        width: auto !important;
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        font-size: 10.5px !important;
        gap: 5px !important;
    }

    .home-ne-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .home-ne-card {
        display: block !important;
        padding: 9px !important;
        border-radius: 10px !important;
    }

    .home-ne-card-main {
        display: flex !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .home-ne-logo {
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
        border-radius: 10px !important;
    }

    .home-ne-logo img {
        padding: 4px !important;
    }

    .home-ne-logo i {
        font-size: 20px !important;
    }

    .home-ne-title-row {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 7px !important;
        margin-bottom: 5px !important;
    }

    .home-ne-title-row h3 {
        font-size: 14px !important;
        line-height: 1.22 !important;
        -webkit-line-clamp: 1 !important;
    }

    .home-ne-status {
        min-height: 22px !important;
        margin-top: 0 !important;
        padding: 0 7px !important;
        font-size: 9.5px !important;
        gap: 4px !important;
    }

    .home-ne-meta {
        gap: 4px !important;
        margin-bottom: 5px !important;
    }

    .home-ne-meta span {
        min-height: 22px !important;
        padding: 0 7px !important;
        font-size: 10px !important;
        gap: 4px !important;
    }

    .home-ne-address {
        display: none !important;
    }

    .home-ne-actions {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    .home-ne-action {
        min-height: 34px !important;
        border-radius: 8px !important;
        font-size: 10.5px !important;
    }

    .home-ne-empty {
        min-height: auto !important;
        padding: 12px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .home-ne-empty-icon {
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        border-radius: 11px !important;
        font-size: 18px !important;
    }

    .home-ne-empty strong {
        font-size: 13px !important;
    }

    .home-ne-empty p,
    .home-ne-empty a {
        font-size: 11.5px !important;
    }
}

@media (max-width: 420px) {
    .home-ne-section-wrapper {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .home-ne-header {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
    }

    .home-ne-heading {
        gap: 7px !important;
    }

    .home-ne-mark {
        width: 32px !important;
        height: 32px !important;
        flex-basis: 32px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }

    .home-ne-heading-text span {
        font-size: 8px !important;
    }

    .home-ne-heading-text h2 {
        font-size: 15.5px !important;
        max-width: 190px !important;
    }

    .home-ne-all-btn {
        min-height: 32px !important;
        padding: 0 8px !important;
        font-size: 9.5px !important;
    }

    .home-ne-all-btn i {
        display: none !important;
    }

    .home-ne-card {
        padding: 8px !important;
    }

    .home-ne-card-main {
        gap: 7px !important;
    }

    .home-ne-logo {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .home-ne-title-row h3 {
        font-size: 13.5px !important;
    }

    .home-ne-status {
        font-size: 0 !important;
        width: 22px !important;
        min-width: 22px !important;
        height: 22px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .home-ne-status i {
        font-size: 10px !important;
    }

    .home-ne-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-ne-action {
        min-height: 32px !important;
        font-size: 10px !important;
    }
}
