:root {
    --primary: #2ea3f2;
    --primary-dark: #1b7fc4;
    --light: #f4f7fb;
    --accent: #ff6b6b;
    --dark: #2c3e50;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    margin: 0;
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none
}

/* TOPBAR */
.topbar {
    background: #eaf4ff;
    padding: 6px 0;
    font-size: 14px;
}

.social-icons a {
    margin-left: 8px;
    color: #333;
    display: inline-block;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.2);
    color: var(--primary);
}

.social-icons a:nth-child(1):hover {
    color: #1877f2;
}

.social-icons a:nth-child(2):hover {
    color: #e4405f;
}

.social-icons a:nth-child(3):hover {
    color: #1da1f2;
}

/* TOP REKLAM */
.top-ad {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 12px 0;
    position: relative;
    z-index: 1001;
}

.top-ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-ad-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.top-ad-close:hover {
    opacity: 1;
}

/* HEADER */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.header-ad {
    background: #ddd;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MENU */
.main-menu {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-menu.scrolled {
    background: var(--primary-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu li a {
    color: #fff;
    padding: 14px 18px;
    display: block;
    transition: .3s;
}

.menu li a:hover {
    background: var(--primary-dark);
}

.menu .has-submenu {
    position: relative;
}

.menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
}

.menu .has-submenu:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu .submenu li {
    width: 100%;
    position: relative;
}

.menu .submenu li a {
    color: var(--dark);
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu .submenu li a:hover {
    background: var(--light);
    color: var(--primary);
}

.menu .submenu .has-submenu {
    position: relative;
}

.menu .submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
}

.menu .submenu .has-submenu:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-toggle {
    display: none
}

/* BANNER */
.banner {
    margin-top: 20px
}

.banner-big {
    height: 360px;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.banner-small {
    height: 170px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PORTAL */
.portal-content {
    margin-top: 25px;
    flex: 1;
}

.portal-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.portal-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.news-card {
    display: flex;
    margin-bottom: 12px;
}

.news-img {
    width: 90px;
    height: 70px;
    background: #ccc;
    margin-right: 10px;
}

.news-grid-img {
    height: 120px;
    background: #ccc;
    margin-bottom: 8px;
}

.event-card {
    display: flex;
    gap: 10px
}

.event-date {
    background: var(--primary);
    color: #fff;
    padding: 10px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gallery-grid div {
    height: 80px;
    background: #ccc;
}

/* FOOTER */
.footer-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    padding: 30px 0;
    font-size: 20px;
    position: relative;
    overflow: hidden;
}

.footer-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
}

.footer h5 {
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffd700;
}

.footer ul {
    list-style: none;
    padding: 0
}

.footer ul li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer ul li:hover {
    transform: translateX(5px);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffd700;
}

.footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    border-radius: 25px;
    padding: 10px 15px;
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer .btn-primary {
    background: #ffd700;
    border: none;
    color: #333;
    font-weight: 600;
    border-radius: 25px;
    padding: 10px;
    transition: all 0.3s ease;
}

.footer .btn-primary:hover {
    background: #ffed4a;
    transform: scale(1.05);
}

.copyright {
    background: linear-gradient(135deg, #4a569d, #2c3e50);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    font-size: 14px;
}

/* MOBILE MENU */
.menu-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1001;
}

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

.mobile-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 90%;
    max-width: 380px;
    height: 100%;
    background: #fff;
    color: #333;
    transform: translateX(-100%);
    transition: .35s;
    z-index: 1002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    font-size: 18px;
    background: var(--primary);
    color: #fff;
}

.menu-close {
    font-size: 22px;
    cursor: pointer;
}

.menu-panels {
    display: flex;
    width: 100%;
    height: 100%;
    transition: .35s;
    flex: 1;
}

.menu-panel {
    min-width: 100%;
    padding: 15px 0;
    overflow-y: auto;
    background: #fff;
}

.menu-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-panel li {
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.menu-panel a {
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

.menu-panel a:hover {
    background: #f5f5f5;
}

.menu-back {
    padding: 14px 20px;
    background: #f0f0f0;
    cursor: pointer;
    color: #333;
    font-weight: 500;
}

.mobile-menu-footer {
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.mobile-menu-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.mobile-menu-footer .avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.mobile-menu-footer .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.mobile-menu-footer .social-links a {
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.mobile-menu-footer .social-links a:hover {
    transform: translateY(-3px);
}

/* HESAP MENÜSÜ */
.account-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1001;
}

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

.account-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 90%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    color: #333;
    transform: translateX(100%);
    transition: .35s;
    z-index: 1002;
    overflow-y: auto;
}

.account-menu.active {
    transform: translateX(0);
}

.account-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.account-menu-header h5 {
    margin: 0;
    font-weight: 600;
}

.account-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.account-menu-close:hover {
    opacity: 1;
}

.account-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.account-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #fff;
}

.account-tab-content {
    padding: 20px;
    display: none;
}

.account-tab-content.active {
    display: block;
}

/* Giriş Formu */
.login-form,
.register-form {
    max-width: 100%;
}

.login-form .form-control,
.register-form .form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.login-form .btn-primary,
.register-form .btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
}

.login-form .btn-primary:hover,
.register-form .btn-primary:hover {
    background: var(--primary-dark);
}

.forgot-password {
    text-align: right;
    margin-bottom: 15px;
}

.forgot-password a {
    color: var(--primary);
    font-size: 14px;
}

/* Şifre Göster/Gizle */
.password-input-group {
    position: relative;
    margin-bottom: 15px;
}

.password-input-group .form-control {
    padding-right: 45px;
    margin-bottom: 0;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Hesabım Menüsü */
.profile-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-email {
    font-size: 14px;
    color: #6c757d;
}

.profile-menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu-items li {
    margin-bottom: 5px;
}

.profile-menu-items a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 12px;
}

.profile-menu-items a:hover {
    background: #f8f9fa;
    transform: translateX(-5px);
}

.profile-menu-items i {
    width: 24px;
    color: var(--primary);
}

.profile-menu-items .badge {
    margin-left: auto;
    background: var(--danger);
}

.profile-menu-items .logout-item a {
    color: var(--danger);
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
}

.profile-menu-items .logout-item i {
    color: var(--danger);
}

/* MODAL */
.modal-ad .modal-content,
.modal-cookie .modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-ad-header,
.modal-cookie-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 20px;
    border: none;
    /* Flexbox ekledik */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mevcut kapatma butonu stilini biraz sadeleştirelim */
.modal-ad-header .btn-close,
.modal-cookie-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin: 0;
    /* Dış boşlukları sıfırlayalım */
    padding: 0.5rem;
    /* Tıklama alanını koruyalım */
}

/* Eğer başlık (h5) çok genişleyip butonu eziyorsa */
.modal-ad-header .modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-ad-body,
.modal-cookie-body {
    padding: 30px;
}

.modal-ad-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #9ca3af;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-ad-discount {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.modal-ad-footer,
.modal-cookie-footer {
    border-top: 1px solid #eee;
    padding: 15px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.modal-cookie-footer .btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
}

.modal-cookie-footer .btn-outline-secondary {
    border: 2px solid #dee2e6;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    color: #6c757d;
}

/* Çerez Ayarları */
.cookie-settings {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cookie-settings li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cookie-settings li:last-child {
    border-bottom: none;
}

.cookie-settings .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.cookie-settings .form-check-input:disabled {
    opacity: 0.6;
}

/* ÇEREZ UYARI */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    border-top: 3px solid var(--primary);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 280px;
}

.cookie-text i {
    font-size: 32px;
    color: var(--primary);
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.cookie-text a {
    color: var(--primary);
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn-primary {
    background: var(--primary);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
}

.cookie-buttons .btn-primary:hover {
    background: var(--primary-dark);
}

.cookie-buttons .btn-outline-secondary {
    border: 2px solid #dee2e6;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    color: #6c757d;
}

.cookie-buttons .btn-outline-secondary:hover {
    background: #f8f9fa;
}

/* MOBILE BAR */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
}

.mobile-bottom-bar a {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #333;
    transition: color 0.3s ease;
    align-items: center;
    position: relative;
}

.mobile-bottom-bar a:hover {
    color: var(--primary);
}

.mobile-bottom-bar .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
}

/* RESPONSIVE */
@media(max-width:992px) {
    .menu {
        display: none
    }

    .menu-toggle {
        display: none !important;
    }

    .banner-big {
        height: 250px
    }

    body {
        padding-bottom: 60px;
    }
}

.menu-panel .has-submenu>a::after {
    content: '\f285';
    font-family: 'bootstrap-icons';
}

.menu-panel .submenu-indicator {
    margin-left: auto;
}

.menu-badge {
    background: var(--danger);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

/* Diğer düzeltmeler */
.btn-close:focus {
    box-shadow: none;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 163, 242, 0.25);
}

.dropdown-item:active {
    background-color: var(--primary);
}

/* Kaydırma çubuğu düzeltmesi */
.account-menu::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar,
.menu-panel::-webkit-scrollbar {
    width: 6px;
}

.account-menu::-webkit-scrollbar-track,
.mobile-menu::-webkit-scrollbar-track,
.menu-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.account-menu::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb,
.menu-panel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.account-menu::-webkit-scrollbar-thumb:hover,
.mobile-menu::-webkit-scrollbar-thumb:hover,
.menu-panel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animasyon düzeltmeleri */
.account-menu.closing {
    transform: translateX(100%);
}

.mobile-menu.closing {
    transform: translateX(-100%);
}


/* Hesabım Cart */
.dashboard-card {
    border: none;
    border-radius: 15px;
    padding: 20px;
    background: #fff;
    transition: 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 28px;
    color: #0d6efd;
}

/* .hesabım-cart */


/* Pop-Up Resim İşlemleri */
.image-box .preview-image {
    max-width: 200px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.image-box .preview-image:hover {
    opacity: 0.8;
}

/* Overlay */
.image-box .imageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.85);
    display: none;

    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-box .overlayImg {
    max-width: 90%;
    max-height: 90%;
}

.image-box .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Pop-Up Resim İşlemleri */





