/* --- AKDENİZ ÜNİVERSİTESİ ETKİNLİK PORTALI - FINAL --- */

:root {
    --primary: #003366;
    --accent: #ff8c00;
    /* Turuncu rengi buraya tanımladık */
    --text: #1e293b;
    --border: #e2e8f0;
    --bg-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* --- HEADER & LOGO TAM ORTALAMA --- */

.main-header {
    padding: 30px 0 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
}

.uni-logo {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 12px auto;
}

.header-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-center h1 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.sub-title {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}


/* --- ŞEFFAF BİLGİ PANELİ --- */

.top-right-info {
    position: absolute;
    right: 20px;
    top: 45px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
}

.weather-box {
    display: flex;
    align-items: center;
    gap: 5px;
}

.datetime-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-left: 1px solid var(--border);
    padding-left: 15px;
}

.clock-time {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.clock-date {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}


/* --- NAVİGASYON (Tüm Butonlar Eşit ve Beyaz) --- */

.header-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 10px 20px;
    /* Boyutlar eşitlendi */
    border-radius: 8px;
    background: #fff;
    /* Hepsi başlangıçta beyaz */
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Üzerine gelince TURUNCU olması */

.nav-link:hover,
.nav-link.highlight:hover {
    background: var(--accent) !important;
    /* Turuncu */
    color: #fff !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
}


/* highlight sınıfı için özel beyaz ayarı (Eski renkleri eziyoruz) */

.nav-link.highlight {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
}


/* --- ARAMA ÇUBUĞU --- */

.search-container {
    margin: 30px 0 15px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-wrapper input {
    width: 100%;
    padding: 11px 15px 11px 40px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    outline: none;
    background: #fff;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}


/* --- KATEGORİ FİLTRE BUTONLARI --- */

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* --- ETKİNLİK KARTLARI --- */

.event-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 350px;
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image-container {
    width: 100%;
    height: 165px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.community-info {
    font-size: 0.65rem;
    font-weight: 800;
    color: #d4af37;
    /* Sabit accent rengi */
    text-transform: uppercase;
}

.card-content h3 {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

.card-details {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 8px;
}

.btn-view {
    display: block;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
}


/* FOOTER */

.main-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: #fff;
}

.admin-btn {
    font-size: 0.7rem;
    color: #94a3b8;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
}


/* RESPONSIVE */

@media (max-width: 1100px) {
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .top-right-info {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    .filter-container {
        flex-wrap: wrap;
    }
}


/* --- MODAL VE SİLME ONAY TASARIMI --- */

#deleteConfirmModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.delete-modal-content {
    background-color: #ffffff;
    margin: 12% auto;
    padding: 35px 25px;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-top: 6px solid #dc2626;
    animation: modalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.delete-modal-content i {
    font-size: 3.5rem;
    color: #dc2626;
    margin-bottom: 20px;
}

.delete-modal-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.delete-modal-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-delete-cancel {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    margin-right: 10px;
}

.btn-delete-cancel:hover {
    background: #e2e8f0;
}

.btn-delete-confirm {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-delete-confirm:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}


/* ===================================================
   TOPLULUK PROFİL SAYFASI - RESPONSIVE GRID DÜZENİ
   =================================================== */


/* Masaüstü ve Geniş Ekranlar (Yan yana çift sütun) */

.profile-layout-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}


/* Tablet ve Mobil Ekranlar (768px ve altı: Alt alta tek sütun) */

@media (max-width: 768px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    /* Mobilde sol kartın ekranda yapışkan (sticky) kalıp ekranı kaplamasını önler */
    .profile-layout-grid aside>div {
        position: static !important;
    }
}