/**
 * Theme CSS
 * 
 * Site genelinde kullanılacak temel stil tanımlamaları
 */

/* Temel Değişkenler */
:root {
    --primary: #4F46E5; /* indigo-600 */
    --primary-dark: #4338CA; /* indigo-700 */
    --primary-light: #6366F1; /* indigo-500 */
    --secondary: #7C3AED; /* violet-600 */
    --secondary-dark: #6D28D9; /* violet-700 */
    --secondary-light: #8B5CF6; /* violet-500 */
    --accent: #EC4899; /* pink-500 */
    --accent-dark: #DB2777; /* pink-600 */
    --accent-light: #F472B6; /* pink-400 */
    --dark: #1E293B; /* slate-800 */
    --dark-light: #334155; /* slate-700 */
    --light: #F8FAFC; /* slate-50 */
    --light-dark: #F1F5F9; /* slate-100 */
    --gray: #64748B; /* slate-500 */
    --gray-light: #94A3B8; /* slate-400 */
    --gray-dark: #475569; /* slate-600 */
    --success: #10B981; /* emerald-500 */
    --warning: #F59E0B; /* amber-500 */
    --danger: #EF4444; /* red-500 */
    --info: #3B82F6; /* blue-500 */
}

/* Sayfa Yükleniyor Animasyonu Ek Stiller */
.page-loader {
    background: linear-gradient(135deg, var(--light) 0%, var(--light-dark) 100%);
}

.loader-logo {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.loader-logo span {
    transition: color 0.3s ease;
}

.loader-logo span:hover {
    color: var(--accent);
}

.floating-icon {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.floating-icon:nth-child(1) i { color: var(--primary); }
.floating-icon:nth-child(2) i { color: var(--secondary); }
.floating-icon:nth-child(3) i { color: var(--accent); }
.floating-icon:nth-child(4) i { color: var(--success); }
.floating-icon:nth-child(5) i { color: var(--warning); }
.floating-icon:nth-child(6) i { color: var(--info); }

.progress-bar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-inner {
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Genel Stil Tanımlamaları */
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light);
}

/* Sayfa içeriği animasyonu — yalnızca opaklık: style.css'teki fadeIn'in
   translateY'si "forwards" ile main'de kalıcı transform bırakıyordu; bu,
   main içindeki position:fixed elemanları ve z-index katmanlarını bozar */
@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.loaded main {
    animation: pageFadeIn 0.5s ease forwards;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover rengi yalnızca sınıfsız (düz içerik) linklere uygulanır.
   Genel "a:hover" kuralı, Tailwind ile renklendirilen buton ve
   linklerin (ör. text-white) yazısını hover'da maviye çevirip
   okunmaz hale getiriyordu. */
a:not([class]):hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Butonlar */
.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: var(--secondary);
    color: white;
    border: 1px solid var(--secondary);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-accent {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-outline {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Navigasyon */
.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

/* Mobil Menü Stilleri */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid var(--light-dark);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--primary);
}

.mobile-nav-sublink {
    display: block;
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: var(--dark-light);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-sublink:hover, .mobile-nav-sublink.active {
    color: var(--primary);
}

/* Footer */
.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 0.5rem;
    border-radius: 1px;
}

/* Kartlar */
.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--light-dark);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--light-dark);
    background-color: var(--light);
}

/* Formlar */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    background-color: white;
    border: 1px solid var(--gray-light);
    border-radius: 0.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.form-control::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* Uyarılar */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
    color: var(--warning);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: var(--info);
    color: var(--info);
}

/* Rozetler */
.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary);
    color: white;
}

.badge-accent {
    background-color: var(--accent);
    color: white;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

.badge-info {
    background-color: var(--info);
    color: white;
}

/* Yardımcı Sınıflar */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-dark { color: var(--dark) !important; }
.text-light { color: var(--light) !important; }
.text-gray { color: var(--gray) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-gray { background-color: var(--gray) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important; }
.shadow-md { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.shadow-lg { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; }
.shadow-xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.shadow-none { box-shadow: none !important; }

.rounded-sm { border-radius: 0.125rem !important; }
.rounded { border-radius: 0.25rem !important; }
.rounded-md { border-radius: 0.375rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 0.75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.rounded-3xl { border-radius: 1.5rem !important; }
.rounded-full { border-radius: 9999px !important; }

.transition { transition: all 0.3s ease !important; }
.transition-colors { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important; }
.transition-opacity { transition: opacity 0.3s ease !important; }
.transition-shadow { transition: box-shadow 0.3s ease !important; }
.transition-transform { transition: transform 0.3s ease !important; }

.hover-scale:hover { transform: scale(1.05) !important; }
.hover-shadow:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important; }
.hover-up:hover { transform: translateY(-5px) !important; }

.animate-fadeIn { animation: fadeIn 0.5s ease forwards; }
.animate-slideInUp { animation: slideInUp 0.5s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.5s ease forwards; }
.animate-pulse { animation: pulse 2s ease infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Responsive Yardımcılar */
@media (max-width: 640px) {
    .hide-sm { display: none !important; }
}

@media (max-width: 768px) {
    .hide-md { display: none !important; }
}

@media (max-width: 1024px) {
    .hide-lg { display: none !important; }
}

@media (max-width: 1280px) {
    .hide-xl { display: none !important; }
}

@media (min-width: 640px) {
    .show-sm { display: none !important; }
}

@media (min-width: 768px) {
    .show-md { display: none !important; }
}

@media (min-width: 1024px) {
    .show-lg { display: none !important; }
}

@media (min-width: 1280px) {
    .show-xl { display: none !important; }
} 