/* Almanya Portal - Ana Stil Dosyası */

:root {
    --primary-color: #DD0000; /* Almanya Kırmızı */
    --secondary-color: #FFCE00; /* Almanya Altın */
    --dark-color: #000000; /* Almanya Siyah */
    --light-color: #f8fafc;
    --success-color: #10b981;
    --danger-color: #DD0000;
    --warning-color: #FFCE00;
    --info-color: #000000;
    --gold-color: #FFCE00;
    --red-color: #DD0000;
    --black-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: var(--dark-color) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.navbar .btn-primary {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #DD0000 50%, #FFCE00 100%);
}

.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" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.min-vh-60 {
    min-height: 60vh;
}

/* Hero Carousel */
.hero-carousel-section {
    height: 600px;
    overflow: hidden;
}

.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
    height: 600px;
}

.hero-carousel-section .carousel-item {
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-section .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-section .carousel-fade .carousel-item.active {
    opacity: 1;
}

.hero-carousel-section .hero-section {
    height: 600px;
    min-height: 600px;
}

.hero-carousel-section .carousel-indicators {
    bottom: 30px;
    z-index: 10;
    gap: 8px;
    display: flex;
    justify-content: center;
}

.hero-carousel-section .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0 4px;
}

.hero-carousel-section .carousel-indicators button:hover {
    background-color: rgba(255, 206, 0, 0.6);
    transform: scale(1.2);
}

.hero-carousel-section .carousel-indicators button.active {
    background-color: #FFCE00;
    border-color: #FFCE00;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 206, 0, 0.5);
}

.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel-section:hover .carousel-control-prev,
.hero-carousel-section:hover .carousel-control-next {
    opacity: 0.8;
}

.hero-carousel-section .carousel-control-prev {
    left: 20px;
}

.hero-carousel-section .carousel-control-next {
    right: 20px;
}

.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover {
    opacity: 1;
    background: rgba(221, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(221, 0, 0, 0.4);
}

.hero-carousel-section .carousel-control-prev-icon,
.hero-carousel-section .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Clickable Cards */
.card-clickable {
    cursor: pointer;
    position: relative;
}

a:has(.card-clickable) {
    display: block;
}

.card-clickable:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-clickable:active {
    transform: translateY(-5px);
}

/* Tıklanabilir kartlarda başlık rengi */
.card-clickable .card-title {
    transition: color 0.3s ease;
}

.card-clickable:hover .card-title {
    color: var(--primary-color) !important;
}

/* Görsel zoom efekti */
.card-clickable:hover .card-img-top {
    transform: scale(1.05);
}

/* Icon animasyonu */
.card-clickable:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(221, 0, 0, 0.15) !important;
}

.card-img-top {
    transition: transform 0.5s ease;
    object-fit: cover;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    position: relative;
    z-index: 1;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #bb0000);
    border: none;
    box-shadow: 0 4px 15px rgba(221, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #bb0000, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 0, 0, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
}

.btn-light:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

footer .btn-outline-light {
    transition: all 0.3s ease;
}

footer .btn-outline-light:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Admin Panel */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
}

.admin-sidebar .nav-link {
    color: white;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-left-color: var(--secondary-color);
    padding-left: 2rem;
}

.admin-content {
    padding: 2rem;
    background: var(--light-color);
    min-height: calc(100vh - 56px);
}

/* Tables */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    margin: 0 2px;
    padding: 0.25rem 0.5rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(221, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

/* Badge */
.badge {
    padding: 0.5em 0.75em;
    border-radius: 6px;
    font-weight: 600;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #bb0000);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(221, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(221, 0, 0, 0.4);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-card .stat-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
#scrollToTop {
    transition: all 0.3s ease;
    opacity: 0;
}

#scrollToTop:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.shadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Transition Utilities */
.transition-all {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}
