/* Instagram Flag Kontrol Aracı - Özel Stiller */

/* Genel Ayarlar */
:root {
    --primary-gradient: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-gradient: linear-gradient(135deg, #405de6, #c13584, #fd1d1d);
    --shadow-primary: 0 8px 32px rgba(64, 93, 230, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glass Card Effect */
.glass-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Text Gradient */
.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 10px rgba(64, 93, 230, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(193, 53, 132, 0.7)); }
}

/* Gradient Button */
.gradient-btn {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.gradient-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(64, 93, 230, 0.4);
}

.gradient-btn:active {
    transform: translateY(0);
}

.gradient-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;
}

.gradient-btn:hover::before {
    left: 100%;
}

/* Form Styling */
.form-control {
    background: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #6c757d !important;
}

.input-group-text {
    background: #e9ecef !important;
    border: 1px solid #ced4da !important;
    transition: all 0.3s ease;
}

/* Alert Styling */
.alert {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    border-radius: 15px !important;
    animation: slideInUp 0.5s ease-out;
}

.alert-success {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
    color: #155724 !important;
}

.alert-danger {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
    color: #721c24 !important;
}

.alert-warning {
    border-color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
    color: #856404 !important;
}

.alert-info {
    border-color: #17a2b8 !important;
    background: rgba(23, 162, 184, 0.1) !important;
    color: #0c5460 !important;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Card Styling */
.card {
    border-radius: 20px !important;
    transition: all 0.3s ease;
}

.bg-transparent {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
}

/* Icon Styling */
.fab.fa-instagram {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Details/Summary Styling */
details {
    transition: all 0.3s ease;
}

details[open] {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px;
}

summary {
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 5px;
    color: #17a2b8 !important;
}

summary:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }
    
    .form-control {
        background: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid white !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid black !important;
        box-shadow: none !important;
    }
    
    .gradient-btn {
        background: #405de6 !important;
        color: white !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #405de6, #c13584);
}

/* Focus Indicators */
.btn:focus,
.form-control:focus {
    outline: 2px solid #405de6;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success/Error States */
.form-control.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3) !important;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3) !important;
}

/* Hover Effects */
.card:hover {
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-1px);
}

/* Animation Delays */
.card {
    animation: fadeInUp 0.6s ease-out;
}

.btn {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
