/* Modern Public Pages CSS - Glassmorphism & Gradient Design */

:root {
    --primary-color: #dc2626;
    --primary-hover: #991b1b;
    --font-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-glow: 0 8px 32px rgba(220, 38, 38, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    overflow: hidden;
    margin: 2rem -1.5rem 3rem -1.5rem;
    padding: 4rem 2rem;
    border-radius: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--font-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.glass-card:hover {
    /* Hover animasyonu kaldırıldı - sadece border rengi değişiyor */
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card-body {
    padding: 2rem;
}

/* Modern Stats Cards */
.modern-stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-stat-card:hover::before {
    opacity: 0;
}

.modern-stat-card:hover {
    /* Hover animasyonu kaldırıldı - sadece border rengi değişiyor */
    border-color: rgba(255, 255, 255, 0.2);
}

.modern-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: var(--primary-color) !important;
}

.modern-stat-icon i {
    display: inline-block !important;
    line-height: 1 !important;
    color: var(--font-color) !important;
    font-size: inherit !important;
}

.modern-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--font-color);
    position: relative;
    z-index: 1;
}

.modern-stat-label {
    color: var(--font-color);
    opacity: 0.8;
    font-size: 0.8rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
}

/* Gradient Buttons */
.btn-gradient {
    background: var(--primary-color);
    border: none;
    color: var(--font-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
    opacity: 0;
}

.btn-gradient:hover::before {
    opacity: 0;
}

.btn-gradient:hover {
    background: var(--primary-hover);
}

.btn-gradient-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--font-color);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-gradient-outline:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--font-color);
    /* Hover animasyonu kaldırıldı - transform yok */
}

/* Modern Topbar */
.app-topbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Dropdown Menu Stilleri */
.dropdown-menu {
    background: rgba(30, 30, 40, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    z-index: 1050 !important;
}

.dropdown-item {
    color: var(--font-color) !important;
    opacity: 0.9;
    padding: 0.75rem 1.5rem !important;
    transition: all 0.3s ease !important;
}

.dropdown-item:hover {
    background: var(--primary-hover) !important;
    color: var(--font-color) !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 0.5rem 0 !important;
}

.topbar-link {
    color: var(--font-color) !important;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 0.5rem 1rem !important;
}

.topbar-link:hover {
    background: var(--primary-hover) !important;
    color: var(--font-color) !important;
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover::after {
    opacity: 0.1;
    background: var(--primary-hover);
}

.feature-card:hover {
    /* Hover animasyonu kaldırıldı - sadece border rengi değişiyor */
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    color: var(--font-color);
    position: relative;
    z-index: 1;
    /* Glow efekti kaldırıldı */
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--font-color);
}

.feature-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Modern Carousel */
.modern-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modern-carousel .carousel-item img {
    border-radius: 20px;
}

.modern-carousel .carousel-control-prev,
.modern-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modern-carousel .carousel-control-prev:hover,
.modern-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Product Cards */
.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 0.1;
    background: var(--primary-hover);
}


.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-price {
    background: var(--primary-color);
    color: var(--font-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-block;
    margin-bottom: 1rem;
    /* Glow efekti kaldırıldı */
}

/* Team Cards */
.team-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover::before {
    opacity: 0.1;
    background: var(--primary-hover);
}



.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}



/* Leaderboard */
.leaderboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.leaderboard-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leaderboard-card:hover::before {
    opacity: 1;
    background: var(--primary-hover);
}


.rank-badge {
    background: var(--primary-color);
    color: var(--font-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    /* Glow efekti kaldırıldı */
}

/* Badge Stilleri */
.badge {
    background: var(--primary-color) !important;
    color: var(--font-color) !important;
}

/* Avatar Title Stilleri */
.avatar-title {
    background: var(--primary-color) !important;
    color: var(--font-color) !important;
}

/* Text Color Utilities - Sadece public sayfalar için */
.public-page h1, 
.public-page h2, 
.public-page h3, 
.public-page h4, 
.public-page h5, 
.public-page h6,
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.glass-card h6 {
    color: var(--font-color) !important;
}

/* Icon colors override - Only specific icons should use primary color */
.glass-card-body h5 i.ti-help-circle,
.glass-card h5 i.ti-help-circle {
    color: var(--primary-color) !important;
}

/* Primary Color Overlay - Şeffaf gradient overlay */
.primary-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--primary-color-rgba, rgba(220, 38, 38, 0.4)) 0%, 
        var(--primary-hover-rgba, rgba(153, 27, 27, 0.4)) 100%);
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--font-color);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--font-color);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark Theme Adjustments */
[data-bs-theme="dark"] .glass-card,
[data-bs-theme="dark"] .modern-stat-card,
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .product-card,
[data-bs-theme="dark"] .team-card,
[data-bs-theme="dark"] .leaderboard-card {
    background: rgba(30, 30, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .modern-stat-label {
    color: var(--font-color);
    opacity: 0.8;
}

[data-bs-theme="dark"] .feature-title {
    color: var(--font-color);
}

[data-bs-theme="dark"] .feature-description {
    color: rgba(255, 255, 255, 0.8);
}

/* SweetAlert2 Custom Styles */
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: var(--primary-color, #dc2626) !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: var(--primary-color, #dc2626) !important;
}

.swal2-icon.swal2-warning {
    border-color: var(--primary-color, #dc2626) !important;
    color: var(--primary-color, #dc2626) !important;
}

.swal2-icon.swal2-error {
    border-color: var(--primary-color, #dc2626) !important;
    color: var(--primary-color, #dc2626) !important;
}

.swal2-icon.swal2-info {
    border-color: var(--primary-color, #dc2626) !important;
    color: var(--primary-color, #dc2626) !important;
}

.swal2-styled.swal2-confirm.modern-swal-confirm,
.swal2-styled.swal2-confirm {
    background: var(--primary-color, #dc2626) !important;
    border-color: var(--primary-color, #dc2626) !important;
    color: var(--font-color, #ffffff) !important;
}

.swal2-styled.swal2-confirm.modern-swal-confirm:hover,
.swal2-styled.swal2-confirm:hover {
    background: var(--primary-hover, #991b1b) !important;
    border-color: var(--primary-hover, #991b1b) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .modern-stat-number {
        font-size: 1.5rem;
    }
    
    .modern-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .modern-stat-card {
        padding: 1rem;
    }
}

