/* Procrastination Patterns Quiz Styles */

/* Container and Layout */
.ppq-intro-page,
.ppq-question-page,
.ppq-results-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Typography */
.ppq-main-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.3;
}

.ppq-intro-subtitle {
    font-size: 1.4em;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
    color: #34495e;
}

.ppq-page-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

/* Images */
.ppq-intro-image,
.ppq-results-banner-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ppq-style-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 15px auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ppq-cta-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ppq-cta-image:hover {
    transform: scale(1.02);
}

/* Intro Content */
.ppq-intro-content {
    margin: 30px 0;
}

.ppq-intro-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

.ppq-intro-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #3498db;
}

.ppq-intro-instructions h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.ppq-intro-instructions ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.ppq-intro-instructions li {
    margin-bottom: 8px;
    color: #555;
}

/* Disclaimer */
.ppq-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.ppq-disclaimer h4 {
    margin-top: 0;
    color: #856404;
    font-size: 1.1em;
}

.ppq-disclaimer p {
    margin-bottom: 12px;
    color: #856404;
    font-size: 0.95em;
}

.ppq-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Progress Bar */
.ppq-progress-container {
    margin: 20px 0;
    text-align: center;
}

.ppq-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ppq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.ppq-page-indicator {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* Questions */
.ppq-question {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.ppq-question:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ppq-question-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 500;
}

/* Scale Container */
.ppq-scale-container {
    margin-top: 15px;
}

.ppq-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 10px;
}

.ppq-scale-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.ppq-scale-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.ppq-scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    padding: 10px 5px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
}

.ppq-scale-option:hover {
    background-color: #f8f9fa;
}

.ppq-scale-option input[type="radio"] {
    display: none;
}

.ppq-radio-button {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1em;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ppq-scale-option input[type="radio"]:checked + .ppq-radio-button {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
    transform: scale(1.1);
}

.ppq-validation-error {
    margin-top: 10px;
    font-size: 0.9em;
    color: #e74c3c;
    font-weight: 500;
}

/* Buttons */
.ppq-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.ppq-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ppq-button-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.ppq-button-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.ppq-cta-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    font-size: 1.2em;
    padding: 15px 40px;
    margin: 20px 0;
}

.ppq-cta-button:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Navigation */
.ppq-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.ppq-intro-start-button,
.ppq-results-nav {
    text-align: center;
    margin-top: 30px;
}

.ppq-results-cta-button-container {
    text-align: center;
    margin: 30px 0;
}

/* Results Page */
.ppq-results-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #28a745;
}

.ppq-summary-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.ppq-results-description {
    color: #555;
    margin-bottom: 0;
}

.ppq-style-breakdown {
    margin: 30px 0;
}

.ppq-style-breakdown h3 {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

/* Result Categories */
.ppq-result-category {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ppq-primary-style {
    border-left: 5px solid #e74c3c;
    background: #fdf2f2;
}

.ppq-secondary-style {
    border-left: 5px solid #f39c12;
    background: #fef9e7;
}

.ppq-low-style {
    border-left: 5px solid #95a5a6;
    opacity: 0.8;
}

.ppq-style-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ppq-style-title {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.ppq-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ppq-score-number {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.ppq-score-label {
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.ppq-primary-style .ppq-score-label {
    color: #e74c3c;
}

.ppq-secondary-style .ppq-score-label {
    color: #f39c12;
}

.ppq-low-style .ppq-score-label {
    color: #95a5a6;
}

.ppq-style-statement {
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
    text-align: center;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
}

.ppq-style-description {
    margin: 20px 0;
}

.ppq-style-description h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ppq-style-description p {
    margin-bottom: 12px;
    color: #555;
    text-align: justify;
}

.ppq-result-content h4 {
    color: #2c3e50;
    margin: 20px 0 10px 0;
    font-size: 1.1em;
}

.ppq-result-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.ppq-result-content li {
    margin-bottom: 8px;
    color: #555;
}

/* Next Steps */
.ppq-next-steps {
    background: #e8f5e8;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #28a745;
}

.ppq-next-steps h3 {
    color: #155724;
    margin-top: 0;
    font-size: 1.4em;
}

.ppq-next-steps p {
    color: #155724;
    margin-bottom: 15px;
}

.ppq-next-steps p:last-child {
    margin-bottom: 0;
}

/* YouTube Video Section */
.ppq-youtube-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.ppq-youtube-title {
    color: #6f42c1;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.ppq-youtube-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ppq-youtube-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ppq-youtube-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.ppq-youtube-thumbnail {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.ppq-youtube-container:hover .ppq-youtube-thumbnail {
    filter: brightness(0.9);
}

.ppq-youtube-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.ppq-youtube-container:hover .ppq-youtube-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.ppq-youtube-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #6f42c1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ppq-youtube-container:hover .ppq-youtube-play-button {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ppq-youtube-description {
    color: #495057;
    font-size: 1.1em;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments for YouTube section */
@media (max-width: 768px) {
    .ppq-youtube-title {
        font-size: 1.2em;
    }
    
    .ppq-youtube-play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .ppq-youtube-description {
        font-size: 1em;
    }
}

/* CTA Section */
.ppq-cta-section {
    text-align: center;
    margin: 30px 0;
}

.ppq-cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ppq-cta-image:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppq-intro-subtitle {
        font-size: 1.2em;
    }

    .ppq-question {
        padding: 20px;
    }

    .ppq-scale-labels {
        padding: 0 5px;
    }

    .ppq-scale-label {
        font-size: 0.8em;
    }

    .ppq-scale-options {
        padding: 0 5px;
    }

    .ppq-radio-button {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .ppq-style-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ppq-score-display {
        align-self: flex-end;
    }

    .ppq-nav-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .ppq-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .ppq-scale-label {
        font-size: 0.7em;
    }

    .ppq-radio-button {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }

    .ppq-scale-option {
        padding: 8px 2px;
    }
}

/* Loading State */
.ppq-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Accessibility */
.ppq-scale-option:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.ppq-button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ppq-nav-buttons,
    .ppq-cta-section,
    .ppq-results-cta-button-container {
        display: none;
    }
    
    .ppq-result-category {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
