/* ==========================================================================
   We Win – Ana sayfa stilleri
   (header.php, main.php, slider.php, about.php içindeki inline <style>
   blokları buraya taşındı; sıra korunmuştur.)
   ========================================================================== */

/* ---------- Genel ---------- */
body { font-family: 'Poppins', sans-serif; }

.error {
    color: #dc2626;
    background: #fee2e2;
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: inline-block;
}

@media (max-width: 900px) { .section-padding { padding: 2.5rem 0.3rem; } }

/* ---------- Giriş: onay/hata modalları ve spinner (index.php) ----------
   Not: Bu sınıfların daha önce hiçbir yerde tanımı yoktu; modallar sayfa
   içinde düz metin olarak açılıyordu. */
.consent-modal, .error-modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0, 0, 0, 0.55);
    align-items: center; justify-content: center;
    padding: 1rem;
}
.consent-modal-content, .error-modal-content {
    background: #fff; border-radius: 12px;
    max-width: 480px; width: 100%; padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.spinner {
    width: 36px; height: 36px; margin: 1rem auto;
    border: 4px solid #e5e7eb; border-top-color: #0047ab;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header / menü ---------- */
.header { background: #fff; color: #0047ab; }
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 4px 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.logo-img { width: 95px; max-width: 95px; height: auto; display: block; }
.logo-text { display: flex; align-items: center; padding-left: 2px; }
.logo-text span {
    color: #fff; background: #0047ab; border-radius: 6px;
    padding: 2px 10px 2px 8px; font-size: 1.05rem;
    font-weight: 600; white-space: nowrap; letter-spacing: 0.2px;
}
@media (max-width: 768px) {
    .logo-img { width: 60px; max-width: 60px; }
    .logo-text span { font-size: 0.88rem; padding: 2px 7px 2px 6px; }
    .logo-container { padding: 3px 5px; }
}
.mobile-menu {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    position: fixed; top: 0; right: 0; height: 100%; width: 75%;
    background: #fff; z-index: 40; padding: 4rem 1rem;
    transform: translateX(100%);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu.closed { transform: translateX(100%); }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }
/* Masaüstü açılır menü */
.dropdown-desktop {
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.group:hover .dropdown-desktop, .group:focus-within .dropdown-desktop {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ---------- Hero ---------- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1599640842225-85d111c60e6b?w=1600&auto=format&fit=crop&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 71, 171, 0.8), rgba(0, 71, 171, 0.5));
}
@keyframes saribeyazgecis {
    0%   { color: #ffd700; text-shadow: 0 0 10px #ffaa00; }
    45%  { color: #fff;    text-shadow: 0 0 18px #fff; }
    55%  { color: #fff;    text-shadow: 0 0 18px #fff; }
    100% { color: #ffd700; text-shadow: 0 0 10px #ffaa00; }
}
.hero-anim-baslik {
    animation: saribeyazgecis 2.4s infinite alternate;
    font-weight: bold;
}
.hero-altbaslik {
    color: #fff !important;
    background: none !important;
    text-shadow: 0 1px 8px #3332;
}
.animate-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ---------- Butonlar ---------- */
.btn-primary,
.btn-messages,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 10px 0 0;
    font-size: 1rem;
    font-weight: 600;
    visibility: visible !important;
    min-width: 120px;
    text-align: center;
    z-index: 10;
    position: relative;
}
.btn-primary {
    background: linear-gradient(to right, #ffd700, #ffaa00);
    color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 6px #ffd70030;
    transition: .2s;
}
.btn-primary:hover {
    background: linear-gradient(to right, #ffaa00, #ffd700);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}
.btn-messages {
    background: linear-gradient(to right, #0047ab, #bfdbfe);
    color: white;
}
.btn-messages:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 71, 171, 0.5);
}
.btn-secondary {
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    color: black;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-secondary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ---------- Davet linkleri ---------- */
.invite-link {
    background: #fff;
    color: #0047ab;
    padding: 8px;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    width: 40px;
    height: 40px;
}
.invite-link:hover { background: #e0e0e0; }
.invite-link i { font-size: 20px; }

/* ---------- Slider (kampanya + duyuru) ---------- */
.slider-container { position: relative; overflow: hidden; width: 100%; max-width: 1200px; margin: 0 auto 2.5rem auto; z-index: 10; }
.slider { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.slider-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 12; }
.slider-nav button { background: rgba(0, 71, 171, 0.77); color: white; border: none; padding: 11px 14px; cursor: pointer; border-radius: 50%; font-size: 1.1rem; transition: background 0.2s; z-index: 14; }
.slider-nav button:hover { background: #0047ab; }
.slider-dots { text-align: center; margin-top: 1.2rem; z-index: 14; }
.slider-dot { display: inline-block; width: 12px; height: 12px; background: #ccc; border-radius: 50%; margin: 0 6px; cursor: pointer; z-index: 14; }
.slider-dot.active { background: #ffd700; }

.campaign-slide { min-width: 100%; box-sizing: border-box; padding: 1.3rem 0.7rem; display: flex; gap: 2rem; background: white; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.09); align-items: stretch; }
.campaign-item { flex: 1 1 0; background: #f9fafb; border-radius: 0.7rem; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.campaign-item img { width: 100%; max-width: 130px; max-height: 130px; object-fit: contain; margin: 0 auto 1rem; border-radius: 0.4rem; background: #fff; }
.campaign-item h4 { font-size: 1.17rem; font-weight: bold; color: #0047ab; margin-bottom: 0.45rem; text-align: center; }
.campaign-item p { font-size: 1rem; color: #444; margin-bottom: 0.5rem; line-height: 1.6; text-align: center; }
.partner-name { font-size: 0.98rem; font-weight: 600; color: #1e40af; margin-bottom: 0.3rem; text-align: center; }
.campaign-tenant { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.3rem; text-align: center; }

.announcement-slide { min-width: 100%; box-sizing: border-box; padding: 1.3rem 0.7rem; display: flex; background: white; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.09); align-items: stretch; justify-content: center; flex-direction: row; gap: 2rem; }
.announcement-img-box { flex: 0 0 160px; max-width: 160px; display: flex; align-items: center; justify-content: center; }
.announcement-item img { width: 140px; height: 140px; object-fit: cover; border-radius: 0.8rem; background: #fff; box-shadow: 0 2px 10px #0001; }
.announcement-content { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.announcement-item h4 { font-size: 1.25rem; font-weight: bold; color: #0047ab; margin-bottom: 0.7rem; text-align: left; }
.announcement-item p { font-size: 1.07rem; color: #444; margin-bottom: 0.7rem; line-height: 1.6; text-align: left; }

@media (max-width: 900px) {
    .campaign-slide { flex-direction: column; gap: 1.2rem; }
    .campaign-item img { max-width: 100px; max-height: 100px; }
    .announcement-slide { flex-direction: column; gap: 0; align-items: center; }
    .announcement-img-box { max-width: 100%; justify-content: center; margin-bottom: 1rem; }
    .announcement-item img { width: 110px; height: 110px; }
    .announcement-content { text-align: center; }
    .announcement-item h4, .announcement-item p { text-align: center; }
}
