/**
 * Main styles for OnPage SEO Reports
 * 
 * @package OnPage_SEO_Report
 * @since 1.0.0
 */

/* Global styles */
:root {
    --primary-color: #397BFB;
    --secondary-color: #4D4D4D;
    --accent-color: #cecaba;
    --accent-light: #b0fbc1;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
    --success-color: #28a745;
    --warning-color: #ffbb33;
    --error-color: #dc3545;
    --font-family: 'Nunito', 'Montserrat', sans-serif;
}

/* Reset specific styles for the report */
.report-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.report-container {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Navigation Controls */
.report-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: var(--secondary-color);
}

.nav-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-light);
}

.progress-container {
    height: 6px;
    width: 100px;
    background-color: var(--medium-gray);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Slides Container */
.slides-container {
    width: 100%;
}

/* Slide */
.slide {
    min-height: 100vh;
    width: 100%;
    padding: 60px 20px;
    position: relative;
    background-color: white;
    overflow: hidden;
}

/* Cover Slide */
.cover-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0;
    color: white;
}

.cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cover-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cover-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cover-subtitle span:first-child {
    color: var(--primary-color);
}

.client-info {
    font-size: 1.2rem;
    margin-top: 30px;
}

.client-info p {
    margin-bottom: 5px;
}

.opsr-header-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.opsr-header-logo h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

/* Content Slide */
.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.slide-header {
    margin-bottom: 30px;
}

.slide-pre-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.slide-description {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.slide-body {
    margin-bottom: 30px;
}

/* End Slide */
.end-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--light-gray);
}

.end-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.end-title span {
    color: var(--primary-color);
}

.contact-info {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.slide-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
}

.footer-logo {
    font-size: 0.9rem;
}

.footer-logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-logo a:hover {
    text-decoration: underline;
}

/* Content Components */
.content-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.column {
    flex: 1;
    min-width: 300px;
}

.column-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.column-content {
    margin-bottom: 20px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    border: 1px solid var(--medium-gray);
}

.data-table th {
    background-color: var(--light-gray);
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--medium-gray);
}

.data-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.data-table tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Images */
.section-image {
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-image img {
    width: 100%;
    display: block;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-align: center;
    padding: 8px 10px;
    background-color: var(--light-gray);
}

/* Lists */
.custom-list {
    margin: 15px 0;
    padding-left: 20px;
}

.custom-list li {
    margin-bottom: 10px;
    position: relative;
}

/* Status indicators */
.success-indicator {
    color: var(--success-color);
}

.warning-indicator {
    color: var(--warning-color);
}

.error-indicator {
    color: var(--error-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cover-slide {
        padding-top: 40px;
    }
    
    .cover-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .cover-title {
        font-size: 3rem;
    }
    
    .cover-subtitle {
        font-size: 2rem;
    }
    
    .image-container {
        position: relative;
        width: 100%;
        height: 300px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .two-columns {
        flex-direction: column;
    }
    
    .nav-button {
        width: 36px;
        height: 36px;
    }
    
    .progress-container {
        width: 80px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Finding card */
.finding {
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    background-color: var(--light-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.finding .section-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--medium-gray);
}

/* End slide */
.end-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
}

.end-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.end-title span {
    color: var(--primary-color);
}

.contact-info {
    font-size: 1.2rem;
    margin-top: 40px;
    max-width: 600px;
}

/* Print styles */
@media print {
    .report-controls {
        display: none;
    }
    
    .slide {
        page-break-after: always;
    }
}