/* Modern Dernek Yönetim Sistemi - Responsive Styles */

/* Global animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

/* Genel container animasyonu */
.modern-container {
    animation: fadeIn 0.6s ease-out;
}

/* Card hover effects */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Button effects */
.modern-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

/* Form inputs */
.modern-input {
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.modern-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Header adjustments */
    .modern-header {
        padding: 20px 15px !important;
        flex-direction: column !important;
        gap: 15px;
        text-align: center;
    }
    
    .modern-header h1 {
        font-size: 24px !important;
    }
    
    /* Grid adjustments */
    .stat-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Card adjustments */
    .stat-card {
        padding: 20px !important;
    }
    
    /* üye listesi adjustments */
    .uye-item > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    /* Arama kutusu */
    .search-container input {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Form container */
    .form-container {
        padding: 20px !important;
        margin: 15px !important;
    }
    
    /* Button adjustments */
    .btn-group {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-group button,
    .btn-group a {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .modern-container {
        padding: 10px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card div:first-child div:first-child {
        font-size: 28px !important;
    }
    
    .uye-item {
        padding: 15px !important;
    }
    
    /* Font size adjustments */
    h1 { font-size: 20px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 16px !important; }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    .form-container {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
        color: white !important;
    }
    
    .modern-input {
        background: #2d3748 !important;
        color: white !important;
        border-color: #4a5568 !important;
    }
    
    .modern-input:focus {
        border-color: #667eea !important;
        background: #1a202c !important;
    }
}

/* Print styles */
@media print {
    .modern-header a,
    .btn-group,
    .search-container {
        display: none !important;
    }
    
    .stat-card {
        box-shadow: none !important;
        border: 2px solid #e2e8f0 !important;
    }
    
    .uye-item {
        break-inside: avoid;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Smooth transitions for all interactive elements */
* {
    box-sizing: border-box;
}

button, a, input, select, .uye-item, .stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improved hover states */
.uye-item:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}

/* Success/Error message styles */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    animation: slideIn 0.5s ease-out;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    animation: slideIn 0.5s ease-out;
}
