/*
Theme Name: MyTestPro Main
Theme URI: https://mytestpro.com
Author: MyTestPro Team
Author URI: https://mytestpro.com
Description: Main site theme for MyTestPro multisite network with user personal area functionality
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytestpro-main
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header Styles */
header.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

nav.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav.main-navigation a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

nav.main-navigation a:hover {
    color: #3498db;
}

/* Main Content */
main.site-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Placeholder Styles */
.placeholder-content {
    background: #fff;
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.placeholder-content h1 {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.placeholder-content p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Personal Area Styles */
.personal-area {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.personal-area-header {
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.personal-area-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.user-info {
    color: #7f8c8d;
    font-size: 14px;
}

/* Quiz Results Styles */
.quiz-results-section {
    margin-bottom: 40px;
}

.quiz-results-section h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.quiz-result-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quiz-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quiz-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quiz-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.quiz-result-date {
    color: #7f8c8d;
    font-size: 14px;
}

.quiz-result-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quiz-data-item {
    background: #fff;
    padding: 10px 15px;
    border-radius: 4px;
}

.quiz-data-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.quiz-data-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Quiz Report Styles */
.quiz-report-page {
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-report-content {
    margin-top: 30px;
}

.quiz-report-content h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 30px;
}

.quiz-report-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

/* Footer Styles */
footer.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: #3498db;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav.main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .placeholder-content h1 {
        font-size: 32px;
    }

    .personal-area {
        padding: 20px;
    }

    .quiz-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
