/* Report Page - Modern Clean Design 2024 */
/* Based on UI/UX best practices: minimalism, white space, clear hierarchy */

/* ============================================
   MAIN CONTAINER - Clean & Centered
   ============================================ */
.report-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.6;
    border-radius: 0;
    box-shadow: none;
}

/* Force override any conflicting styles */
body .report-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
}

@media (max-width: 768px) {
    .report-container {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   HEADER - Modern Minimal Design
   ============================================ */
.report-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    border-bottom: none;
    justify-content: center;
}

/* Force override */
body .report-container .report-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    border-bottom: none;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.report-header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: 10%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
}

.report-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
}

@media (max-width: 768px) {
    .report-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .report-header h1 {
        font-size: 1.875rem;
    }
}

.report-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.report-date {
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.report-date i {
    font-size: 0.875rem;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.refresh-btn i {
    font-size: 0.875rem;
}

/* ============================================
   SCORE SECTION - Card Design
   ============================================ */
.report-container .score-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .score-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.score-circle.good {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.score-circle.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.score-circle.bad {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-number {
    position: relative;
    z-index: 1;
}

.score-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score-label span:first-child {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-rating {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.score-summary {
    display: flex;
    align-items: center;
    padding-left: 2.5rem;
    border-left: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .score-summary {
        padding-left: 0;
        padding-top: 2rem;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

.score-summary p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
    color: #374151;
}

.score-summary strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-danger {
    color: #ef4444;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    height: 2rem;
    width: 100%;
    clear: both;
}

/* ============================================
   WEBSITE SCREENSHOT
   ============================================ */
.website-screenshot {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.website-screenshot h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #1f2937;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.screenshot-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 200px;
    height: 200px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.screenshot-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

.screenshot-img.error {
    display: none;
}

.screenshot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #6b7280;
    text-align: center;
    padding: 1.5rem;
    z-index: 1;
}

.screenshot-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
    opacity: 0.8;
}

.screenshot-placeholder p {
    font-size: 0.875rem;
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

.screenshot-caption {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.visit-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.visit-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.no-screenshot {
    background: #f9fafb;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    border: 1px dashed #d1d5db;
}

.no-screenshot i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.no-screenshot p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.no-screenshot small {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    display: block;
}

.refresh-screenshot-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #6b7280;
    color: #ffffff;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.refresh-screenshot-btn:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .report-container {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .report-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .report-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .report-header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .report-date {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
    }
    
    .refresh-btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .score-section {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .score-label span:first-child {
        font-size: 0.75rem;
    }
    
    .score-rating {
        font-size: 0.9375rem;
    }
    
    .score-summary p {
        font-size: 0.9375rem;
    }
    
    .website-screenshot {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .website-screenshot h2 {
        font-size: 1.125rem;
    }
    
    .screenshot-container {
        max-height: 150px;
        height: 150px;
    }
    
    .visit-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .custom-ad-section {
        margin: 1.5rem 0;
    }
    
    .ad-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .report-container {
        padding: 0.75rem;
        margin: 0.5rem auto;
    }
    
    .report-header {
        padding: 1.25rem 0.875rem;
        border-radius: 12px;
    }
    
    .report-header h1 {
        font-size: 1.375rem;
    }
    
    .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    .shape-2 {
        width: 100px;
        height: 100px;
    }
    
    .shape-3 {
        width: 80px;
        height: 80px;
    }
    
    .score-section {
        padding: 1.25rem 0.875rem;
        border-radius: 12px;
    }
    
    .score-circle {
        width: 90px;
        height: 90px;
        font-size: 1.75rem;
    }
    
    .score-summary p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .score-summary strong {
        font-size: 1rem;
    }
}
