/**
 * Astroloji Eklentisi - Ana CSS
 * Version: 2.0.0
 * Dosya: assets/css/style.css
 */

/* ===============================================
   GENEL STİLLER
   =============================================== */

:root {
    --astro-primary: #667eea;
    --astro-secondary: #764ba2;
    --astro-success: #48bb78;
    --astro-danger: #f56565;
    --astro-warning: #ed8936;
    --astro-info: #4299e1;
    --astro-light: #f7fafc;
    --astro-dark: #2d3748;
    --astro-border: #e2e8f0;
    --astro-shadow: rgba(0, 0, 0, 0.1);
    --astro-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    box-sizing: border-box;
}

/* ===============================================
   ANA CONTAINER
   =============================================== */

.astro-analysis-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===============================================
   FORM STİLLERİ
   =============================================== */

.astro-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px var(--astro-shadow);
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.astro-form-title {
    font-size: 32px;
    color: var(--astro-dark);
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    background: var(--astro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.astro-form-subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 40px;
    font-size: 16px;
}

.astro-form-section {
    margin-bottom: 35px;
}

.astro-form-section h3 {
    font-size: 22px;
    color: var(--astro-dark);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--astro-primary);
    position: relative;
}

.astro-form-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--astro-secondary);
}

.astro-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.astro-form-group {
    flex: 1;
    min-width: 200px;
}

.astro-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.astro-form-group select,
.astro-form-group input[type="text"],
.astro-form-group input[type="email"],
.astro-form-group input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--astro-border);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: var(--astro-dark);
}

.astro-form-group select:focus,
.astro-form-group input:focus {
    border-color: var(--astro-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.astro-form-group select.error,
.astro-form-group input.error {
    border-color: var(--astro-danger);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.astro-form-group small {
    display: block;
    margin-top: 8px;
    color: #a0aec0;
    font-size: 13px;
    font-style: italic;
}

/* ===============================================
   BUTON STİLLERİ
   =============================================== */

.astro-form-actions {
    text-align: center;
    margin-top: 40px;
}

.astro-btn {
    display: inline-block;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.astro-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.astro-btn:hover::before {
    left: 100%;
}

.astro-btn-primary {
    background: var(--astro-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.astro-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.astro-btn-primary:active {
    transform: translateY(-1px);
}

.astro-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.astro-btn-secondary {
    background: #e2e8f0;
    color: var(--astro-dark);
}

.astro-btn-secondary:hover {
    background: #cbd5e0;
}

.btn-loader {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===============================================
   SONUÇ BÖLÜMÜ
   =============================================== */

.astro-results {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px var(--astro-shadow);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.astro-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--astro-primary);
}

.astro-results-header h2 {
    font-size: 28px;
    color: var(--astro-dark);
    margin: 0;
    font-weight: 700;
}

.astro-btn-close {
    background: var(--astro-danger);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.astro-btn-close:hover {
    background: #c53030;
    transform: rotate(90deg) scale(1.1);
}

/* ===============================================
   RAPOR İÇERİĞİ
   =============================================== */

.astro-report {
    line-height: 1.8;
}

.report-section {
    background: var(--astro-light);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--astro-primary);
    transition: all 0.3s ease;
}

.report-section:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px var(--astro-shadow);
}

.report-section h3 {
    font-size: 24px;
    color: var(--astro-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section h4 {
    font-size: 18px;
    color: var(--astro-primary);
    margin: 20px 0 10px;
    font-weight: 600;
}

.report-section p {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 16px;
}

.report-section strong {
    color: var(--astro-dark);
    font-weight: 600;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--astro-border);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--astro-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--astro-shadow);
}

.info-item strong {
    display: block;
    color: var(--astro-primary);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===============================================
   UYUMLULUK SONUÇLARI
   =============================================== */

.compatibility-results {
    padding: 20px;
}

.compatibility-score {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    display: inline-block;
    margin-bottom: 20px;
}

.compatibility-score h3 {
    font-size: 24px;
    color: var(--astro-dark);
    margin-top: 15px;
}

.compatibility-section {
    background: var(--astro-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.compatibility-section h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--astro-dark);
}

/* ===============================================
   HOROSKOP WİDGET
   =============================================== */

.horoscope-widget {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--astro-shadow);
}

.horoscope-sign-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.sign-item {
    text-align: center;
    padding: 15px;
    border: 2px solid var(--astro-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--astro-dark);
}

.sign-item:hover {
    border-color: var(--astro-primary);
    background: var(--astro-light);
    transform: translateY(-3px);
}

.sign-item.active {
    border-color: var(--astro-primary);
    background: var(--astro-gradient);
    color: white;
}

.sign-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

.horoscope-display {
    background: var(--astro-light);
    border-radius: 12px;
    padding: 25px;
}

.horoscope-content h3 {
    font-size: 22px;
    color: var(--astro-dark);
    margin-bottom: 20px;
    text-align: center;
}

.horoscope-item {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--astro-primary);
}

.horoscope-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--astro-border);
}

.horoscope-footer span {
    font-size: 14px;
    color: #718096;
}

.horoscope-footer strong {
    color: var(--astro-primary);
    font-size: 16px;
}

/* ===============================================
   BİLDİRİMLER
   =============================================== */

.astro-notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--astro-shadow);
    z-index: 9999;
    transition: all 0.3s ease;
    border-left: 5px solid;
    max-width: 400px;
}

.astro-notification.show {
    top: 20px;
}

.astro-notification.success {
    border-left-color: var(--astro-success);
}

.astro-notification.error {
    border-left-color: var(--astro-danger);
}

.astro-notification.warning {
    border-left-color: var(--astro-warning);
}

.astro-notification.info {
    border-left-color: var(--astro-info);
}

/* ===============================================
   TOOLTIP
   =============================================== */

.astro-tooltip {
    position: absolute;
    background: var(--astro-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 1000;
    max-width: 250px;
    pointer-events: none;
}

/* ===============================================
   LOADING STATES
   =============================================== */

.astro-loading {
    text-align: center;
    padding: 60px 20px;
}

.astro-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--astro-border);
    border-top-color: var(--astro-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===============================================
   PROGRESS BAR
   =============================================== */

.astro-progress {
    width: 100%;
    height: 8px;
    background: var(--astro-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.astro-progress-bar {
    height: 100%;
    background: var(--astro-gradient);
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    .astro-analysis-container {
        padding: 15px;
    }
    
    .astro-form-wrapper,
    .astro-results {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .astro-form-title {
        font-size: 24px;
    }
    
    .astro-form-row {
        flex-direction: column;
    }
    
    .astro-form-group {
        min-width: 100%;
    }
    
    .astro-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .astro-results-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .horoscope-sign-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .report-section {
        padding: 20px;
    }
    
    .astro-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .astro-form-title {
        font-size: 20px;
    }
    
    .report-section h3 {
        font-size: 20px;
    }
    
    .horoscope-sign-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    .astro-btn,
    .astro-btn-close,
    .astro-form-wrapper {
        display: none;
    }
    
    .astro-results {
        box-shadow: none;
        padding: 0;
    }
    
    .report-section {
        page-break-inside: avoid;
    }
}

/* ===============================================
   DARK MODE SUPPORT (Opsiyonel)
   =============================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --astro-light: #2d3748;
        --astro-dark: #f7fafc;
        --astro-border: #4a5568;
    }
    
    .astro-form-wrapper,
    .astro-results,
    .report-section,
    .info-item,
    .horoscope-widget {
        background: #1a202c;
        color: #e2e8f0;
    }
    
    .astro-form-group select,
    .astro-form-group input {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */

.astro-btn:focus,
.astro-form-group select:focus,
.astro-form-group input:focus {
    outline: 3px solid var(--astro-primary);
    outline-offset: 2px;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
