/**
 * SEO ROI Calculator - Styles
 * Modern, responsive ve animasyonlu tasarım
 */

/* ========================================
   Genel Ayarlar ve Reset
   ======================================== */
.seoroicalc-wrapper * {
    box-sizing: border-box;
}

.seoroicalc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ========================================
   Container
   ======================================== */
.seoroicalc-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: seoroicalc-fadeInUp 0.6s ease-out;
}

/* ========================================
   Header
   ======================================== */
.seoroicalc-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.seoroicalc-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seoroicalc-subtitle {
    font-size: 1.1em;
    color: #666;
    margin: 0;
}

/* ========================================
   Form
   ======================================== */
.seoroicalc-form {
    margin-bottom: 40px;
}

.seoroicalc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.seoroicalc-form-group {
    position: relative;
}

.seoroicalc-form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.seoroicalc-label-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.seoroicalc-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

.seoroicalc-form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.seoroicalc-form-group input::placeholder {
    color: #aaa;
}

/* ========================================
   Button
   ======================================== */
.seoroicalc-form-actions {
    text-align: center;
}

.seoroicalc-btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.seoroicalc-btn-calculate:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.seoroicalc-btn-calculate:active {
    transform: translateY(-1px);
}

.seoroicalc-btn-icon {
    font-size: 1.2em;
}

/* ========================================
   Loading
   ======================================== */
.seoroicalc-loading {
    text-align: center;
    padding: 40px;
    animation: seoroicalc-fadeIn 0.3s ease-in;
}

.seoroicalc-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: seoroicalc-spin 1s linear infinite;
}

.seoroicalc-loading p {
    color: #666;
    font-size: 1.1em;
    font-weight: 500;
}

/* ========================================
   Results
   ======================================== */
.seoroicalc-results {
    animation: seoroicalc-fadeInUp 0.6s ease-out;
}

.seoroicalc-results-header {
    text-align: center;
    margin-bottom: 30px;
}

.seoroicalc-results-header h3 {
    font-size: 2em;
    color: #1a1a1a;
    margin: 0;
}

.seoroicalc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ========================================
   Result Cards
   ======================================== */
.seoroicalc-result-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    animation: seoroicalc-slideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.seoroicalc-result-card:nth-child(1) { animation-delay: 0.1s; }
.seoroicalc-result-card:nth-child(2) { animation-delay: 0.2s; }
.seoroicalc-result-card:nth-child(3) { animation-delay: 0.3s; }
.seoroicalc-result-card:nth-child(4) { animation-delay: 0.4s; }

.seoroicalc-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.seoroicalc-card-primary {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
}

.seoroicalc-card-success {
    border-color: #4caf50;
    background: linear-gradient(135deg, #4caf5010 0%, #66bb6a10 100%);
}

.seoroicalc-card-info {
    border-color: #2196f3;
    background: linear-gradient(135deg, #2196f310 0%, #42a5f510 100%);
}

.seoroicalc-card-warning {
    border-color: #ff9800;
    background: linear-gradient(135deg, #ff980010 0%, #ffa72610 100%);
}

.seoroicalc-card-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
}

.seoroicalc-card-content h4 {
    font-size: 1em;
    color: #666;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seoroicalc-card-value {
    text-align: center;
    margin-bottom: 15px;
}

.seoroicalc-counter {
    font-size: 2.2em;
    font-weight: 700;
    color: #1a1a1a;
    display: inline-block;
}

.seoroicalc-currency {
    font-size: 1.5em;
    font-weight: 600;
    color: #666;
    margin-right: 5px;
}

.seoroicalc-unit {
    font-size: 0.9em;
    color: #666;
    margin-left: 8px;
    display: block;
    margin-top: 5px;
}

/* ========================================
   Progress Bar
   ======================================== */
.seoroicalc-card-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.seoroicalc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0;
    animation: seoroicalc-progressBar 1.5s ease-out forwards;
}

.seoroicalc-card-success .seoroicalc-progress-bar {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
}

.seoroicalc-card-info .seoroicalc-progress-bar {
    background: linear-gradient(90deg, #2196f3 0%, #42a5f5 100%);
}

.seoroicalc-card-warning .seoroicalc-progress-bar {
    background: linear-gradient(90deg, #ff9800 0%, #ffa726 100%);
}

/* ========================================
   Details
   ======================================== */
.seoroicalc-details {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    animation: seoroicalc-fadeIn 0.6s ease-out 0.5s both;
}

.seoroicalc-details h4 {
    font-size: 1.3em;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    text-align: center;
}

.seoroicalc-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.seoroicalc-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.seoroicalc-detail-label {
    font-weight: 500;
    color: #666;
}

.seoroicalc-detail-value {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1em;
}

/* ========================================
   CTA
   ======================================== */
.seoroicalc-cta {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    animation: seoroicalc-fadeIn 0.6s ease-out 0.6s both;
}

.seoroicalc-cta p {
    font-size: 1.2em;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.seoroicalc-btn-reset {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.seoroicalc-btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Animations
   ======================================== */
@keyframes seoroicalc-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes seoroicalc-slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes seoroicalc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes seoroicalc-progressBar {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .seoroicalc-container {
        padding: 25px;
    }
    
    .seoroicalc-title {
        font-size: 2em;
    }
    
    .seoroicalc-subtitle {
        font-size: 1em;
    }
    
    .seoroicalc-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seoroicalc-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seoroicalc-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .seoroicalc-btn-calculate {
        width: 100%;
        justify-content: center;
    }
    
    .seoroicalc-counter {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .seoroicalc-wrapper {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .seoroicalc-container {
        padding: 20px;
        border-radius: 15px;
    }
    
    .seoroicalc-title {
        font-size: 1.6em;
    }
    
    .seoroicalc-result-card {
        padding: 20px;
    }
    
    .seoroicalc-counter {
        font-size: 1.5em;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .seoroicalc-form,
    .seoroicalc-cta {
        display: none;
    }
    
    .seoroicalc-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
