/* menu/style.css */

/* Genel Stiller ve Değişkenler */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --secondary-color: #FF5E62;
    --text-color: #444;
    --bg-color: #f8f9fa;
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9);
    --box-shadow-hover: 0 10px 30px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* YÜKLEME EKRANI STILLERİ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f9fc;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0.5s; /* visibility geçişi, opacity bittikten sonra devreye girer */
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
    transition-delay: 0s !important; /* Gecikmesiz başla */
}

/* İçeriği başlangıçta gizle, JS ile göstereceğiz */
#content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease; /* Sadece opacity için geçiş, visibility anında değişecek */
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.5s ease, visibility 0s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
    min-height: 100vh;
}

#content {
    width: 100%;
    transition: var(--transition);
    background-color: #f7f9fc;
    display: flex;
    flex-direction: column;
}

/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

/* Kart Stilleri (Genel) */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    background: white;
    overflow: hidden;
}

/* Menü Kartları için Özel Stiller */
.menu-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Hafif gölge */
    animation: fadeInUp 0.5s ease-out backwards; /* Fade-in animation with delay for cards */
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(71, 118, 230, 0.25); /* Güçlü hover gölgesi */
}

.menu-card .card-body {
    padding: 2.5rem 1.5rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.menu-card:hover .menu-icon {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Menü ikonları için renkler (Bootstrap renk sınıflarına göre) */
.menu-icon.bg-primary { background: var(--gradient-primary) !important; }
.menu-icon.bg-success { background: linear-gradient(135deg, #28a745, #218838) !important; }
.menu-icon.bg-warning { background: linear-gradient(135deg, #ffc107, #e0a800) !important; }
.menu-icon.bg-danger { background: linear-gradient(135deg, #dc3545, #c82333) !important; }
.menu-icon.bg-info { background: linear-gradient(135deg, #17a2b8, #138496) !important; }

.menu-card .card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.menu-card .card-text {
    font-size: 0.95rem;
    color: #6c757d;
}

/* Buton Stilleri */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8E54E9, #4776E6);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.3);
    border-color: #8E54E9;
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    position: relative;
    z-index: 1;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #8E54E9;
    background-color: transparent;
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.2);
    transform: translateY(-2px);
}

.btn-outline-primary:hover::before {
    opacity: 1;
}

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

.fade-in-up {
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Footer styling */
footer {
    background-color: #fff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.7;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modal-header {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary); /* Modal başlığı da gradyanlı */
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1); /* Beyaz renkte kapatma butonu */
}

.modal-title {
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.modal-body {
    padding: 25px;
}

/* Media queries */
@media (max-width: 992px) {
    .menu-card .card-body {
        padding: 2rem 1rem;
    }
    .menu-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    .menu-card .card-title {
        font-size: 1.3rem;
    }
    .menu-card .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .menu-card .card-body {
        padding: 1.8rem 1rem;
    }
    .menu-icon {
        width: 55px;
        height: 55px;
        font-size: 1.9rem;
    }
    .menu-card .card-title {
        font-size: 1.25rem;
    }
    .menu-card .card-text {
        font-size: 0.88rem;
    }
    .container-fluid.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 576px) {
    .menu-card .card-body {
        padding: 1.5rem 0.8rem;
    }
    .menu-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    .menu-card .card-title {
        font-size: 1.1rem;
    }
    .menu-card .card-text {
        font-size: 0.85rem;
    }
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem !important;
    }
}

/* Genel erişilebilirlik ve performans iyileştirmeleri */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.25);
}

@media (max-width: 768px) {
    .card, .menu-icon, .btn {
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
}

/* Brand Logo - simple and bold */
.brand-logo {
    display: block;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.75rem);
    margin-bottom: 2rem; /* logo ile başlık arasına daha fazla boşluk */
}

.brand-part {
    display: inline-block;
}

.part-tonyukuk {
    color: var(--secondary-color);
}

.part-akilli {
    color: var(--primary-color);
}

/* Ensure logo remains prominent on small screens */
@media (max-width: 576px) {
    .brand-logo {
        font-size: 2rem;
    }
}

/* Duyuru Kutusu Stilleri */
.announcement-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-backdrop.show {
    opacity: 1;
}

.announcement-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    pointer-events: none;
}

.announcement-box.show {
    opacity: 1;
    pointer-events: all;
    animation: announcementAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.announcement-content {
    background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(71, 118, 230, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.announcement-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.announcement-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    min-width: 0;
}

.announcement-icon {
    font-size: 2.5rem;
    color: #ffffff;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: iconPulse 2s ease-in-out infinite;
}

.announcement-text-wrapper {
    flex: 1;
    min-width: 0;
}

.announcement-text {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    display: block;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.announcement-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.625rem;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.announcement-close i {
    font-size: 1.25rem;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@keyframes announcementAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .announcement-box {
        width: 95%;
        max-width: 500px;
    }
    
    .announcement-inner {
        padding: 1.5rem 1.5rem;
        gap: 1rem;
    }
    
    .announcement-icon {
        font-size: 2rem;
    }
    
    .announcement-text {
        font-size: 1rem;
    }
    
    .announcement-close {
        padding: 0.5rem;
    }
    
    .announcement-close i {
        font-size: 1.1rem;
    }
}

