/* css/styles.css - Consolidated Page-Specific Styles for Static Pages */

/* ------------------------------------------------------------- */
/* Contact Us Page Specific Styles */
/* ------------------------------------------------------------- */
.contact-form {
    margin-top: 20px;
    width: 100%; /* Ensure form takes full width of its parent */
    max-width: 500px; /* Limit form width for better readability */
    margin-left: auto; /* Center the form within its parent */
    margin-right: auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between form elements */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: var(--body-font); /* Consistent font from _base.css */
    font-size: 1em;
    color: var(--text-color-dark);
    background-color: #f8f8f8;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none; /* Remove default outline */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color); /* Highlight on focus */
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2); /* Subtle shadow on focus */
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px;
}

.contact-form button[type="submit"] {
    /* Inherits game-button styles from _base.css due to class added in HTML */
    align-self: flex-start; /* Align button to the left */
    padding: 12px 25px; /* Maintain button padding */
    font-size: 1.1em; /* Maintain font size */
}

/* Responsive adjustments for contact form */
@media (max-width: 600px) {
    .contact-form {
        padding: 0 10px; /* Add some horizontal padding */
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9em;
        padding: 10px;
    }
    .contact-form button[type="submit"] {
        width: 100%; /* Make button full width on small screens */
        align-self: center; /* Center button when full width */
    }
}

/* ------------------------------------------------------------- */
/* Leaderboard Page Specific Styles */
/* ------------------------------------------------------------- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse; /* Collapse borders for a clean look */
    margin-top: 20px;
    background-color: var(--text-color-light); /* White background */
    border-radius: 10px;
    overflow: hidden; /* Ensures rounded corners on content */
    box-shadow: var(--box-shadow-light);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px; /* Generous padding */
    text-align: left;
    border-bottom: 1px solid #eee; /* Light border between rows */
    color: var(--text-color-dark); /* Dark text color */
}

.leaderboard-table thead th {
    background-color: var(--primary-color); /* Green header background */
    color: var(--text-color-light); /* White text */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

.leaderboard-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9; /* Zebra striping */
}

.leaderboard-table tbody tr:hover {
    background-color: #f0f0f0; /* Subtle hover effect */
    transition: background-color 0.2s ease;
}

/* Specific styling for rank column */
.leaderboard-table tbody td:first-child {
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive adjustments for table */
@media (max-width: 768px) {
    .leaderboard-table {
        font-size: 0.9em; /* Smaller font for mobile table */
        display: block; /* Make table responsive by stacking rows */
        overflow-x: auto; /* Allow horizontal scrolling if content is too wide */
        white-space: nowrap; /* Prevent content from wrapping */
    }
    .leaderboard-table thead, .leaderboard-table tbody, .leaderboard-table th, .leaderboard-table td, .leaderboard-table tr {
        display: block; /* Stack table parts */
    }
    .leaderboard-table thead tr {
        position: absolute; /* Hide header row for stacking */
        top: -9999px;
        left: -9999px;
    }
    .leaderboard-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }
    .leaderboard-table td {
        border: none; /* Remove inner borders */
        position: relative;
        padding-left: 50%; /* Space for data-label */
        text-align: right;
    }
    .leaderboard-table td::before {
        content: attr(data-label); /* Display header as data-label */
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }
}
/* Revert data-label for wider tables */
@media (min-width: 769px) {
    .leaderboard-table {
        display: table;
        overflow-x: visible;
        white-space: normal;
    }
    .leaderboard-table thead tr {
        position: static;
    }
    .leaderboard-table th, .leaderboard-table td {
        display: table-cell;
        text-align: left;
    }
    .leaderboard-table td::before {
        content: none;
    }
}

/* ------------------------------------------------------------- */
/* Strategy Page Specific Styles (used for general lists now) */
/* ------------------------------------------------------------- */
.page-container h3 {
    color: var(--primary-color); /* Green for subheadings */
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* General list styling (for strategy and now for how-to-play FAQs) */
.page-container ul.strategy-list,
.page-container ul.faq-list { 
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 1.5em;
}

.page-container ul.strategy-list li,
.page-container ul.faq-list li {
    position: relative;
    padding-left: 30px; /* Space for custom bullet */
    margin-bottom: 1em;
    color: var(--text-color-dark);
}

.page-container ul.strategy-list li::before {
    content: "💡"; /* Custom lightbulb bullet */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}
.page-container ul.faq-list li::before { /* Specific bullet for FAQ lists if needed */
    content: "•"; /* Simple bullet for FAQ lists (default) */
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
    color: var(--primary-color); /* Green bullet */
}


.page-container ul.strategy-list li strong,
.page-container ul.faq-list li strong {
    color: var(--primary-color); /* Highlight strong text in lists */
    font-weight: 700;
}

/* Responsive adjustments for strategy page */
@media (max-width: 768px) {
    .page-container h3 {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .page-container ul.strategy-list li,
    .page-container ul.faq-list li {
        padding-left: 25px;
        font-size: 0.9em;
    }
}

/* ------------------------------------------------------------- */
/* FAQ Page Specific Styles (for how-to-play.html) */
/* ------------------------------------------------------------- */
.faq-container {
    margin-top: 20px;
    width: 100%;
}

.faq-item {
    background-color: var(--text-color-light);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden; /* For border-radius */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-question {
    background-color: #f7f7f7; /* Light background for question header */
    padding: 15px 20px;
    margin: 0; /* Remove default h3/h4 margin */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color); /* Green question text */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question::after {
    content: '+'; /* Plus icon */
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.faq-question.active {
    background-color: #e8f5e9; /* Lighter green when active */
    color: var(--primary-color-dark);
}

.faq-question.active::after {
    content: '-'; /* Minus icon */
    transform: rotate(0deg); /* Reset rotation */
}

.faq-answer {
    padding: 15px 20px;
    background-color: var(--text-color-light);
    color: var(--text-color-dark);
    font-size: 0.95em;
    line-height: 1.6;
    display: none; /* Hidden by default */
    border-top: 1px solid #eee;
}

.faq-answer p {
    margin-bottom: 1em; /* Space between paragraphs in answer */
}
.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Specific styling for lists within FAQ answers if they exist */
.faq-answer ul {
    list-style: disc; /* Default disc bullets for clarity in answers */
    padding-left: 25px;
    margin-bottom: 1em;
}
.faq-answer ul li {
    margin-bottom: 0.5em;
}
.faq-answer ul li strong {
    color: var(--primary-color);
}

/* Responsive for FAQ */
@media (max-width: 600px) {
    .faq-question {
        padding: 12px 15px;
        font-size: 1em;
    }
    .faq-answer {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}