/* Takipçi Sorgulama Sistemi - Modern CSS */

/* CSS Değişkenleri */
:root {
    /* Açık Tema */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --error-color: #e53e3e;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-focus: #667eea;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Koyu Tema - Profesyonel Renk Skalası */
[data-theme="dark"] {
    /* Ana Arka Plan Tonları */
    --bg-primary: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
    --bg-secondary: #1A1A1A;
    --bg-card: #1A1A1A;
    --bg-input: #262626;
    --bg-hover: #262626;
    
    /* Yazı Renkleri - Tümü Beyaz/Açık Ton */
    --text-primary: #FFFFFF;
    --text-secondary: #F0F0F0;
    --text-muted: #CCCCCC;
    --text-inverse: #0D0D0D;
    
    /* Vurgu Renkleri */
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    
    /* Border Renkleri */
    --border-color: #2E2E2E;
    --border-focus: #3B82F6;
    --border-strong: #3F3F3F;
    
    /* Gölge Efektleri */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    transition: var(--transition);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-inverse);
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Controls */
.controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.control-group {
    position: relative;
}

.control-label {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.control-select {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.control-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.control-button {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Search Section */
.search-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
    transition: left 0.5s ease;
}

.search-section:hover::before {
    left: 100%;
}

.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-input);
    color: var(--text-primary);
    min-width: 250px;
}

.input-group input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Loading */
.loading {
    text-align: center;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
    margin: 0 auto 2rem;
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: innerPulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes innerPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Result */
.result {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    animation: progressBar 0.8s ease-out 0.3s forwards;
}

@keyframes progressBar {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.result-title {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.result-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    animation: slideInLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }
.info-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-item:hover {
    background: var(--bg-input);
    transform: translateX(5px);
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.info-value {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Error */
.error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-card {
    background: var(--bg-card);
    border: 2px solid var(--error-color);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.error-title {
    color: var(--error-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.error-message {
    color: var(--error-color);
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-inverse);
    opacity: 0.8;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Koyu Tema Özel Stiller */
[data-theme="dark"] .search-section,
[data-theme="dark"] .result-card,
[data-theme="dark"] .error-card,
[data-theme="dark"] .loading {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .info-item {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .info-item:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .control-select {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .control-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .control-button {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .control-button:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .input-group input {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .input-group input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .input-group input::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .spinner {
    border-color: var(--border-color);
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
}

[data-theme="dark"] .spinner::after {
    background: var(--primary-color);
}

[data-theme="dark"] .progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

[data-theme="dark"] .result-card::before {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

[data-theme="dark"] .error-card {
    border-color: var(--error-color);
}

[data-theme="dark"] .error-title,
[data-theme="dark"] .error-message {
    color: var(--error-color);
}

[data-theme="dark"] .header {
    color: var(--text-inverse);
}

[data-theme="dark"] .title {
    color: var(--text-inverse);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

[data-theme="dark"] .subtitle {
    color: var(--text-inverse);
    opacity: 0.9;
}

[data-theme="dark"] .footer {
    color: var(--text-inverse);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .controls {
        top: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .control-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .control-button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input,
    .btn {
        min-width: auto;
        width: 100%;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .info-value {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }
    
    .search-section,
    .result-card,
    .error-card,
    .loading {
        padding: 1.5rem;
    }
}
