/**
 * SEO Competitor Report - Styles
 * assets/css/style.css
 */

/* Container */
.scr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.scr-header {
    text-align: center;
    margin-bottom: 40px;
}

.scr-header h2 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 10px;
}

.scr-header p {
    font-size: 18px;
    color: #718096;
}

/* Form */
.scr-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scr-form-group {
    margin-bottom: 25px;
}

.scr-form-group label {
    display: block;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 14px;
}

.scr-form-group input[type="text"],
.scr-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.scr-form-group input[type="text"]:focus,
.scr-form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.scr-form-group small {
    display: block;
    color: #718096;
    font-size: 13px;
    margin-top: 5px;
}

/* Checkboxes */
.scr-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.scr-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scr-checkbox:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.scr-checkbox input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.scr-checkbox input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

/* Submit Button */
.scr-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.scr-submit-btn:active {
    transform: translateY(0);
}

/* Loading Screen */
.scr-loading {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

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

.scr-loading h3 {
    font-size: 24px;
    color: #1a202c;
    margin-bottom: 10px;
}

.scr-loading p {
    font-size: 16px;
    color: #718096;
}

/* Report Styles */
.scr-report {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.scr-report-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.scr-report-header h1 {
    font-size: 32px;
    color: #1a202c;
    margin-bottom: 10px;
}

.scr-report-header h2 {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

.scr-report-date {
    color: #718096;
    font-size: 14px;
}

/* Print Button */
.scr-print-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scr-print-btn:hover {
    background: #667eea;
    color: white;
}

/* Overview Cards */
.scr-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.scr-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.scr-card-label {
    font-size: 13px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.scr-card-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.scr-card-subtext {
    font-size: 14px;
    color: #718096;
}

/* Channel Grid */
.scr-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.scr-channel-card {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.scr-channel-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.scr-channel-card.inactive {
    background: #f7fafc;
    opacity: 0.7;
}

.scr-channel-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.scr-channel-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.scr-channel-subtext {
    font-size: 13px;
    opacity: 0.8;
}

/* Sections */
.scr-section {
    margin-bottom: 40px;
}

.scr-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
}

/* Chart Container */
.scr-chart-container {
    height: 400px;
    margin-top: 20px;
}

/* Table */
.scr-table-responsive {
    overflow-x: auto;
}

.scr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.scr-table th,
.scr-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.scr-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scr-table td {
    color: #1a202c;
    font-size: 14px;
}

.scr-table tbody tr:hover {
    background: #f7fafc;
}

/* Insights Grid */
.scr-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.scr-insight-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.scr-insight-card.scr-insight-success {
    border-left-color: #48bb78;
}

.scr-insight-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.scr-insight-text {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

.scr-insight-text strong {
    color: #667eea;
    font-weight: 700;
}

/* CTA Section */
.scr-cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.scr-cta-section h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.scr-cta-section p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.scr-tidycal-container {
    margin-top: 30px;
    background: white;
    border-radius: 10px;
    padding: 20px;
}

/* Print Styles */
@media print {
    .scr-print-btn,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .scr-report {
        box-shadow: none;
        padding: 20px;
    }
    
    .scr-section {
        page-break-inside: avoid;
    }
    
    .scr-chart-container {
        max-width: 100%;
        height: auto !important;
    }
    
    .scr-cta-section {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scr-container {
        padding: 10px;
    }
    
    .scr-form {
        padding: 20px;
    }
    
    .scr-report {
        padding: 20px;
    }
    
    .scr-checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .scr-overview-grid {
        grid-template-columns: 1fr;
    }
    
    .scr-print-btn {
        position: static;
        margin-bottom: 20px;
        width: 100%;
    }
}