/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0.1
*/

/* Önemli Günler Sayfası Stilleri */
.important-days-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
    font-family: 'Arial', sans-serif;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* Arama Kutusu */
.important-days-search {
    position: relative;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#important-days-search-input {
    width: 100%;
    padding: 15px 80px 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#important-days-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.15);
}

.search-clear {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    display: none;
}

.search-clear:hover {
    color: #e74c3c;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8899a6;
}

/* Arama sonuçları için */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Yaklaşan Önemli Gün Kartı - İslami ve Modern Tasarım */
.upcoming-event-card {
    background: linear-gradient(135deg, #A8D5BA 0%, #4B6F44 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(75, 111, 68, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 10;
    color: #4B3B2B;
    animation: gentleGlow 6s ease-in-out infinite;
}

@keyframes gentleGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.08);
    }
}

.upcoming-event-header h2 {
    margin: 0 0 25px 0;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    color: #FAF3E0;
    text-shadow: 0 2px 6px rgba(75, 111, 68, 0.3);
}

.upcoming-event-body h3 {
    margin: 0 0 15px 0;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #FAF3E0;
    text-shadow: 0 2px 4px rgba(75, 111, 68, 0.5);
}

.upcoming-event-body .mahiyet {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
    color: #E6E1D9;
    opacity: 0.9;
}

.event-details {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #4B3B2B;
    font-size: 16px;
}

.event-details p {
    margin: 8px 0;
}

.upcoming-event-body .share-card-btn {
    position: absolute;
    bottom: 20px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    color: #4B6F44;
    border: 2px solid rgba(75, 111, 68, 0.7);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upcoming-event-body .share-card-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: #2F4F2F;
    border-color: #2F4F2F;
}

/* Paylaş Butonu Stili */
.share-card-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a90e2, #667eea);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    z-index: 2;
}

.share-card-btn:hover {
    background: linear-gradient(135deg, #3a70b2, #5568ba);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 18px rgba(74, 144, 226, 0.4);
}

.share-icon {
    font-size: 18px;
}

/* Yaklaşan event için paylaş butonu */
.upcoming-event-card .share-card-btn {
    position: absolute;
    margin-top: 15px;
    width: auto;
    height: auto;
    padding: 10px 20px;
    border-radius: 20px;
}

.upcoming-event-card .share-icon {
    margin-right: 8px;
}

/* Tüm Önemli Günler Bölümü */
.all-events-section {
    margin-top: 50px;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a90e2, #667eea);
    border-radius: 2px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    min-height: 280px;
    z-index: 10;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Geçmiş Etkinlik Badge */
.past-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #4a90e2, #667eea);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.event-card h4 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 50px 0 15px 0;
    line-height: 1.4;
    padding-right: 40px;
}

.event-card .mahiyet {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
}

.event-card .event-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.event-card .event-details p {
    margin: 6px 0;
    font-size: 14px;
    color: #555;
}

.event-card .share-card-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.event-card .share-card-btn:hover {
    background: linear-gradient(135deg, #3a70b2, #5568ba);
}

/* Past Event Stili */
.event-card.past-event {
    opacity: 0.9;
    background: #fafafa;
}

/* Bölüm Ayırıcı */
.event-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    margin: 50px 0;
}

/* MOBİL DROPDOWN MENÜ STİLLERİ */
.event-buttons-container {
    position: relative;
    margin: 30px 0;
}

.desktop-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-dropdown {
    display: none;
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.mobile-dropdown-select {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #4B6F44;
    border-radius: 12px;
    background-color: white;
    font-size: 16px;
    color: #2c3e50;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234B6F44'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 111, 68, 0.15);
    font-weight: 600;
}

.mobile-dropdown-select:focus {
    outline: none;
    border-color: #3a5c34;
    box-shadow: 0 0 0 3px rgba(75, 111, 68, 0.2);
}

.mobile-dropdown-select option {
    padding: 12px;
    font-size: 15px;
    background: white;
    color: #2c3e50;
}

/* Butonlar - Yaklaşan önemli gün ile aynı renk */
.event-btn {
    background: linear-gradient(135deg, #A8D5BA, #4B6F44);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(75, 111, 68, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    min-width: 180px;
}

.event-btn:hover {
    background: linear-gradient(135deg, #97c4a8, #3a5c34);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(75, 111, 68, 0.4);
}

.btn-icon {
    font-size: 18px;
    margin-right: 8px;
}

.btn-text {
    font-size: 15px;
}

/* Tooltip (açıklama balonu) */
.btn-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: max-content;
}

/* Ok işareti - AŞAĞIYA BAKACAK ŞEKİLDE */
.btn-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.95);
    clip-path: polygon(0% 0%, 100% 0%, 50% 50%);
}

/* Aktif buton stili */
.event-btn.active .btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive davranış */
@media (max-width: 768px) {
    .desktop-buttons {
        display: none;
    }

    .mobile-dropdown {
        display: block;
    }

    .event-buttons {
        justify-content: flex-start;
        padding: 10px;
    }

    .event-btn {
        flex: 0 0 auto;
        flex-direction: column;
        min-width: 80px;
        height: 70px;
        padding: 10px;
    }

    .btn-icon {
        font-size: 20px;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .btn-text {
        display: none;
    }

    .btn-tooltip {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-dropdown {
        display: none;
    }

    .desktop-buttons {
        display: flex;
    }

    .event-buttons {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: visible;
    }

    .event-btn {
        flex: 0 0 auto;
        min-width: 160px;
        height: auto;
        padding: 12px 20px;
    }

    .btn-icon {
        font-size: 18px;
        margin-right: 8px;
    }

    .btn-text {
        display: block;
        font-size: 14px;
    }

    .btn-tooltip {
        display: none;
    }
}

/* Küçük ekranlar için ince ayar */
@media (max-width: 480px) {
    .mobile-dropdown-select {
        padding: 14px 45px 14px 15px;
        font-size: 15px;
        background-position: right 15px center;
    }

    .event-buttons {
        gap: 8px;
    }

    .event-btn {
        min-width: 70px;
        height: 65px;
        padding: 8px;
    }

    .btn-icon {
        font-size: 18px;
    }
}

/* Kaydırma ipucu için geçici animasyon */
.event-buttons.scroll-hint {
    animation: scroll-hint 1.5s ease 2;
}

@keyframes scroll-hint {
    0% {
        box-shadow: inset 0 0 0 0 rgba(75, 111, 68, 0);
    }

    50% {
        box-shadow: inset -10px 0 10px -5px rgba(75, 111, 68, 0.5);
    }

    100% {
        box-shadow: inset 0 0 0 0 rgba(75, 111, 68, 0);
    }
}

/* Modal Stilleri */
.share-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.share-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.share-modal-content h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.share-buttons {
    display: grid;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.share-whatsapp {
    background: #25D366;
}

.share-facebook {
    background: #3b5998;
}

.share-twitter {
    background: #1DA1F2;
}

.share-copy {
    background: #6c757d;
}

.share-native {
    background: #9b59b6;
}

.share-option:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Header Tarih Kısmı */
.header-dates-wrapper {
    overflow: hidden;
    background: #f5f5f5;
    user-select: none;
    position: relative;
    height: 40px;
    /* Yazının yüksekliği */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Masaüstünde ortala */
}

.header-dates {
    display: inline-block;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: #1e2731;
}

/* Tarih araları */
.header-dates span {
    margin: 0 10px;
}

/* Mobilde kaydırma */
@media (max-width: 768px) {
    .header-dates-wrapper {
        justify-content: flex-start;
        /* Sola hizala */
    }

    .header-dates {
        display: flex;
        animation: marquee 15s linear infinite;
    }

    /* Kesintisiz scroll için spanları iki kez kopyalayabilirsin */
    .header-dates span {
        margin: 0 20px;
    }
}

/* Animasyon */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Yazıyı bitişik hale getirmek için iki kopya */
.header-dates::after {
    content: attr(data-text);
    padding-left: 50px;
    /* iki metin arası boşluk */
}

/* Hover durdurma */
.header-dates:hover {
    animation-play-state: paused;
    opacity: 0.8;
}

/* Sonsuz akış */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .important-days-container {
        padding: 0 15px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .upcoming-event-card {
        padding: 20px;
    }

    .section-title {
        font-size: 26px;
    }

    .event-card {
        padding: 20px;
        min-height: 250px;
    }

    .share-card-btn {
        width: 35px;
        height: 35px;
        bottom: 12px;
        right: 12px;
    }

    .share-icon {
        font-size: 16px;
    }

    /* Mobil için marquee efekti */
    .header-dates {
        display: inline-block;
        position: relative;
        left: 0;
        animation: marquee 15s linear infinite;
    }

    @keyframes marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-100%);
        }
    }
}

@media (max-width: 480px) {
    .important-days-search {
        margin-bottom: 30px;
    }

    #important-days-search-input {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }

    .upcoming-event-header h2 {
        font-size: 22px;
    }

    .upcoming-event-body h3 {
        font-size: 20px;
    }

    .event-card h4 {
        font-size: 18px;
        margin: 40px 0 12px 0;
    }

    .event-date {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .past-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Genel stiller */
html,
body {
    background: #f5f5f5 !important;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card {
    animation: fadeIn 0.5s ease-out;
}

/* Yükleniyor efekti */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Özel kaydırma çubuğu */
.events-grid::-webkit-scrollbar {
    width: 8px;
}

.events-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.events-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a90e2, #667eea);
    border-radius: 10px;
}

.events-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a70b2, #5568ba);
}

/* SAĞDaki BOŞLUĞU TAMAMEN KALDIRMA */
@media (max-width: 768px) {
    body.important-days-page {
        overflow-x: hidden;
        width: 100%;
    }

    .important-days-container>* {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Force all elements to fit */
    .all-events-section,
    .upcoming-event-card,
    .important-days-search {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}


/* Yükleme animasyonu */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4B6F44;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #4B6F44;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dropdown yükleme efekti */
.mobile-dropdown-select.loading {
    opacity: 0.7;
    pointer-events: none;
    background-image: none;
}
.today-event {
    border: 2px solid #ff6b6b !important;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%) !important;
    position: relative;
}

.today-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    animation: pulse 2s infinite;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.upcoming-event-card {
    position: relative;
}

.event-card {
    position: relative;
}