/* IMEYSAN Custom Styles - Modernize Edilmiş Sürüm */

:root {
    --color-navy: #1a1a2e;
    --color-gold: #f39c12;
    --color-blue: #2c3e50;
    --color-error: #ef4444;
    --color-success: #10b981;
}

/* =============================================
   ALPINE.JS & CORE
   ============================================= */
[x-cloak] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   TRANSITIONS & FOCUS
   ============================================= */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* =============================================
   SPINNER (Bülten ve Yükleme Durumları)
   ============================================= */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: currentColor; /* Buton metin rengini otomatik alır */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* =============================================
   COMPONENTS (Tailwind @apply ile)
   ============================================= */
.btn-primary {
    @apply px-8 py-3 bg-imeysan-gold text-imeysan-navy font-bold rounded-lg 
           hover:bg-yellow-400 active:scale-95 transition-all duration-200 
           disabled:opacity-50 disabled:cursor-not-allowed;
}

.btn-secondary {
    @apply px-8 py-3 bg-imeysan-navy text-white font-bold rounded-lg 
           hover:bg-gray-900 active:scale-95 transition-all duration-200;
}

.card {
    @apply bg-white rounded-lg shadow-lg hover:shadow-2xl transition-shadow duration-300;
}

/* =============================================
   FORMS & NEWSLETTER
   ============================================= */
input:disabled, 
button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.form-input {
    @apply w-full px-4 py-2 border-2 border-gray-200 rounded-lg text-sm
           focus:outline-none focus:border-imeysan-gold focus:ring-4 focus:ring-yellow-500/10
           transition-all duration-200;
}

/* Bülten mesajları için ek netlik */
[aria-live="polite"] {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* =============================================
   UTILITY & SCROLLBAR
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 10px;
    border: 2px solid #f8f9fa;
}

::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* =============================================
   LOGO & IMAGES
   ============================================= */
.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .logo-img { height: 28px; }
}

/* =============================================
   BACK TO TOP (Modern Revize)
   ============================================= */
.back-to-top {
    @apply fixed bottom-8 right-8 bg-imeysan-gold text-imeysan-navy
           w-12 h-12 flex items-center justify-center rounded-full
           shadow-xl hover:bg-yellow-400 hover:-translate-y-1 
           active:scale-90 transition-all duration-300 z-50;
}