/* ============================================================
   Samsun Ülkü Ocakları — Main CSS
   Modern Corporate Design System
   ============================================================ */

/* ---- Utility Classes ---- */

/* Navigation */
.nav-link {
    @apply text-gray-700 dark:text-gray-300 hover:text-primary dark:hover:text-primary;
}

.dropdown-item {
    @apply block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-dark-lighter hover:text-primary dark:hover:text-primary transition-colors;
}

.mobile-nav-link {
    @apply block px-4 py-3 text-sm font-medium text-gray-700 dark:text-gray-300 rounded-lg hover:bg-gray-100 dark:hover:bg-dark-light hover:text-primary dark:hover:text-primary transition-all;
}

.footer-link {
    @apply text-gray-400 hover:text-white transition-colors;
}

.social-icon-btn {
    @apply w-8 h-8 rounded-lg bg-white/10 hover:bg-primary flex items-center justify-center transition-all hover:scale-110;
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 45%, #cffafe 100%);
}

.hero-gradient-overlay {
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.7) 60%,
        rgba(6,182,212,0.04) 100%
    );
}

/* Cards */
.card {
    @apply bg-white dark:bg-dark-card rounded-2xl shadow-card dark:shadow-card-dark border border-gray-100 dark:border-gray-800 hover:shadow-lg dark:hover:shadow-xl transition-all duration-300;
}

.card:hover {
    transform: translateY(-2px);
}

/* Section Titles */
.section-badge {
    @apply inline-flex items-center gap-2 bg-primary/10 dark:bg-primary/20 text-primary rounded-full px-4 py-1 text-xs font-bold uppercase tracking-widest mb-4;
}

.section-title {
    @apply text-3xl md:text-4xl font-bold font-display text-gray-900 dark:text-white leading-tight;
}

.section-title span {
    @apply text-primary;
}

/* Buttons */
.btn-primary {
    @apply inline-flex items-center gap-2 px-6 py-3 bg-primary text-white font-semibold rounded-xl hover:bg-primary-700 active:scale-95 transition-all shadow-md hover:shadow-glow-red;
}

.btn-outline {
    @apply inline-flex items-center gap-2 px-6 py-3 border-2 border-primary text-primary font-semibold rounded-xl hover:bg-primary hover:text-white active:scale-95 transition-all;
}

.btn-gold {
    @apply inline-flex items-center gap-2 px-6 py-3 bg-gold text-dark-DEFAULT font-bold rounded-xl hover:bg-gold-dark active:scale-95 transition-all shadow-glow-gold;
}

/* Badges */
.badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}
.badge-red    { @apply bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400; }
.badge-gold   { @apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400; }
.badge-green  { @apply bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400; }
.badge-gray   { @apply bg-gray-100 text-gray-800 dark:bg-gray-800 dark:text-gray-300; }

/* Stats */
.stat-card {
    @apply relative overflow-hidden rounded-2xl p-8 text-white;
    background: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to));
}

.stat-number {
    @apply text-4xl md:text-5xl font-black font-display leading-none;
}

/* Form Inputs */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-xl bg-white dark:bg-dark-lighter text-gray-900 dark:text-white placeholder-gray-400 dark:placeholder-gray-500
           focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent
           transition-all duration-200;
}

.form-label {
    @apply block text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2;
}

.form-error {
    @apply mt-1 text-xs text-red-600 dark:text-red-400;
}

/* Event Cards */
.event-card {
    @apply card overflow-hidden group cursor-pointer;
}

.event-card-image {
    @apply w-full h-48 object-cover group-hover:scale-105 transition-transform duration-500;
}

/* Tournament Badge */
.sport-badge {
    @apply inline-flex items-center gap-1 px-3 py-1 rounded-full text-xs font-bold uppercase tracking-wide;
}

/* Breadcrumb */
.breadcrumb {
    @apply flex items-center gap-2 text-sm text-gray-500 dark:text-gray-400 mb-8;
}

.breadcrumb a {
    @apply hover:text-primary transition-colors;
}

/* Table */
.data-table {
    @apply w-full text-sm;
}
.data-table th {
    @apply bg-gray-50 dark:bg-dark-lighter text-left px-4 py-3 font-semibold text-gray-700 dark:text-gray-300 text-xs uppercase tracking-wide;
}
.data-table td {
    @apply px-4 py-3 border-t border-gray-100 dark:border-gray-800 text-gray-700 dark:text-gray-300;
}
.data-table tr:hover td {
    @apply bg-gray-50 dark:bg-dark-lighter/50;
}

/* Pagination */
.pagination {
    @apply flex items-center gap-1 justify-center;
}
.page-btn {
    @apply w-9 h-9 flex items-center justify-center rounded-lg text-sm font-medium
           border border-gray-200 dark:border-gray-700
           text-gray-600 dark:text-gray-400
           hover:bg-primary hover:text-white hover:border-primary
           transition-all;
}
.page-btn.active {
    @apply bg-primary text-white border-primary;
}

/* Gold Divider */
.gold-divider {
    @apply w-16 h-1 bg-gradient-to-r from-gold to-gold-light rounded-full;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #06b6d4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #0891b2; }

/* Selection */
::selection { background: #06b6d4; color: white; }

/* Smooth transitions */
* { scroll-behavior: smooth; }

/* Hero pattern overlay */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animated underline */
.underline-animate {
    position: relative;
    display: inline-block;
}
.underline-animate::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #06b6d4;
    transition: width 0.3s ease;
}
.underline-animate:hover::after { width: 100%; }

/* Glow Effects */
.glow-red  { box-shadow: 0 0 20px rgba(6, 182, 212, 0.4); }
.glow-gold { box-shadow: 0 0 20px rgba(34, 211, 238, 0.3); }

/* Responsive Image */
.img-responsive { @apply w-full h-full object-cover; }

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
