/* =============================================
   FAZ 1+4 - Erişilebilirlik + Performans Düzeltmeleri
   ============================================= */

/* ===== WIDGET PADDING-TOP FIX ===== */
body:has(.aw-page-wrapper) {
    padding-top: 0 !important;
}

.aw-page-wrapper {
    padding-top: 115px;
}

@media (max-width: 991.98px) {
    .aw-page-wrapper {
        padding-top: 80px;
    }
}

@media (max-width: 767.98px) {
    .aw-page-wrapper {
        padding-top: 70px;
    }
}

/* ===== SKIP NAVIGATION LINK ===== */
.skip-link {
    position: fixed !important;
    top: -9999px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1B5E20 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 0 0 8px 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    z-index: 999999 !important;
    transition: top 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 10px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: #fff !important;
    outline: 3px solid #C8A415 !important;
    outline-offset: 2px !important;
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
    outline: 3px solid #C8A415;
    outline-offset: 2px;
}

/* ===== POPUP MODAL (footer inline style'dan taşındı) ===== */
.popup-modal-image {
    width: calc(100% + 70px);
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: -40px -35px 20px -35px;
}

.popup-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-modal-subtitle {
    display: inline-block;
    background: #e8f4fd;
    color: #003d82;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.popup-modal-image + .popup-modal-icon {
    display: none;
}

@media (max-width: 575.98px) {
    .popup-modal-image {
        height: 150px;
        margin: -35px -25px 15px -25px;
        width: calc(100% + 50px);
    }
}

/* ===== KONTRAST DÜZELTMELERİ (WCAG 2.1 AA 4.5:1) ===== */

/* Top Bar - beyaz yazı yeşil arkaplan üzerinde */
.top-bar a {
    color: #ffffff !important;
}
.top-bar a:hover {
    color: #ffd54f !important;
    text-decoration: underline !important;
}
.top-bar span,
.top-bar span a {
    color: #ffffff !important;
}

/* Footer linkleri - koyu yeşil arkaplan üzerinde */
.footer-links a {
    color: #d4e6d6 !important;
}
.footer-links a:hover {
    color: #ffffff !important;
}
.footer-contact-text {
    color: #c8dcc9 !important;
}
.footer-contact-text a {
    color: #d4e6d6 !important;
}
.footer-contact-text a:hover {
    color: #ffffff !important;
}
.footer-bottom {
    color: #c8dcc9 !important;
}
.footer-bottom-links a {
    color: #c8dcc9 !important;
}
.footer-bottom-links a:hover {
    color: #ffffff !important;
}

/* Haber kartı tarih */
.news-card .news-date,
.news-date-overlay {
    color: #1a1a1a !important;
}

/* ===== COOKIE CONSENT MODAL ===== */
.cookie-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    animation: cookieSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-modal-closing {
    animation: cookieSlideOut 0.4s ease-in-out forwards;
}

.cookie-modal-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    padding: 20px;
    color: #fff;
}

.cookie-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.cookie-modal-body { padding: 20px; }
.cookie-modal-body p { margin: 0; color: #4b5563; font-size: 14px; line-height: 1.6; }
.cookie-modal-actions { padding: 0 20px 20px; display: flex; gap: 10px; }

.cookie-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: transform 0.2s, background 0.2s;
}

.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn:focus-visible { outline: 3px solid #C8A415; outline-offset: 2px; }

.cookie-btn-accept {
    flex: 1;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
}

.cookie-btn-accept:hover { background: linear-gradient(135deg, #2E7D32 0%, #388E3C 100%); }
.cookie-btn-reject { background: #f3f4f6; color: #6b7280; }
.cookie-btn-reject:hover { background: #e5e7eb; }

@keyframes cookieSlideIn {
    from { transform: translateX(450px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes cookieSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(450px); opacity: 0; }
}

@media (max-width: 768px) {
    .cookie-modal { width: calc(100% - 40px); bottom: 10px; right: 10px; left: 10px; }
}
