/* content/layout.css */

:root {
    --primary-color: #4CAF50; /* Green for accents */
    --secondary-color: #2196F3; /* Blue for secondary actions */
    --dark-bg: #1a1a2e; /* Dark background */
    --darker-bg: #16162a; /* Even darker for some blocks */
    --text-color: #e0e0e0; /* Light gray for general text */
    --heading-color: #ffffff; /* White for headings */
    --card-bg: #2a2a4a; /* Card background */
    --border-color: #3f3f6f; /* Subtle border */
    --gradient-primary: linear-gradient(90deg, #4CAF50, #8BC34A);
    --gradient-secondary: linear-gradient(90deg, #2196F3, #03A9F4);
    --warning-color: #FFC107; /* Yellow for warnings */
    --error-color: #F44336; /* Red for errors */
    --success-color: #4CAF50; /* Green for success */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}

/* Ensure default text color is always visible */
* {
    color: var(--text-color); /* Apply to all elements by default */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    color: var(--heading-color); /* Ensure button text is white */
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-card-action {
    width: 100%;
    margin-top: auto; /* Push button to bottom of card */
    background: var(--gradient-primary);
    color: var(--heading-color);
    padding: 10px 15px;
}

.btn-card-action:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    display: flex !important;
    justify-content: center;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--heading-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Required for gradient text */
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Age Verification Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: translateY(-50px);
}

.modal-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--heading-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-color);
    margin-bottom: 30px;
}

.modal-actions button {
    margin: 0 10px;
    min-width: 150px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: fit-content;
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(-100%);
    display: none !important;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    color: var(--text-color);
}

.cookie-banner .cookie-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.cookie-actions .btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* Cookie Customization Modal */
.cookie-modal-hidden {
    display: none;
}

.cookie-customize-modal .modal-content {
    max-width: 600px;
    text-align: left;
}

.cookie-customize-modal h3 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--darker-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cookie-category input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.cookie-category label {
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
}

.cookie-category small {
    color: var(--text-color);
    font-size: 0.8em;
    margin-left: 5px;
}

.cookie-category .cookie-description {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 30px;
}

#save-cookie-selection {
    margin-top: 20px;
    width: auto;
    padding: 10px 25px;
}

/* Header */
.site-header {
    background-color: var(--darker-bg);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.site-logo {
    height: 50px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('photos/uploads/abstract-gaming-background_3.jpg'); /* Macro for background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: var(--heading-color);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.3em;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Rating Grid Section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.rating-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.rating-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-logo-link {
    display: block;
    margin-bottom: 20px;
}

.card-logo {
    max-width: 280px;
    height: 150px;
    object-fit: contain;
    filter: brightness(1.1); /* Slightly brighten logos on dark background */
    transition: transform 0.3s ease;
}

.card-logo-link:hover .card-logo {
    transform: scale(1.05);
}

.card-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.star-rating {
    color: var(--warning-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.star-rating i {
    margin: 0 1px;
}

.star-rating.small {
    font-size: 1em;
}

.review-score {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.key-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    width: 100%;
}

.key-highlights li {
    margin-bottom: 10px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.key-highlights li i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.1em;
}

/* Comparison Table Section */
.table-responsive-wrapper {
    overflow-x: auto;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px; /* Ensure horizontal scroll on smaller screens */
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.comparison-table thead th {
    background-color: var(--darker-bg);
    color: var(--heading-color);
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 5;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1);
}

.comparison-table tbody tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.sticky-header-table .sticky-cell {
    position: sticky;
    left: 0;
    background-color: var(--darker-bg);
    z-index: 6;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.comparison-table thead .sticky-cell {
    background-color: var(--darker-bg);
    color: var(--heading-color);
}

.score-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9em;
}

.score-badge.high {
    background-color: var(--success-color);
    color: var(--heading-color);
}

.score-badge.medium {
    background-color: var(--warning-color);
    color: var(--dark-bg);
}

.icon-success {
    color: var(--success-color);
    margin-right: 5px;
}

/* User Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--primary-color);
}

.reviewer-name {
    font-weight: 600;
    font-size: 1.1em;
    color: var(--heading-color);
    display: block;
    margin-bottom: 5px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.review-date {
    font-size: 0.85em;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: auto;
}

/* Rating Criteria Section */
.criteria-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.criteria-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.criteria-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.criteria-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.criteria-title {
    font-size: 1.4em;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.criteria-description {
    color: var(--text-color);
    font-size: 0.95em;
}

/* Disclaimer Section */
.disclaimer-section {
    background-color: var(--darker-bg);
    padding: 60px 0;
    text-align: center;
    border-top: 2px solid var(--error-color);
    border-bottom: 2px solid var(--error-color);
    margin-top: 60px;
}

.disclaimer-content {
    background-color: rgba(var(--error-color-rgb), 0.1);
    padding: 40px;
    border-radius: 15px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(var(--error-color-rgb), 0.3);
    border: 1px solid var(--error-color);
}

.disclaimer-icon {
    font-size: 3.5em;
    color: var(--error-color);
    margin-bottom: 20px;
}

.disclaimer-title {
    font-size: 2em;
    color: var(--error-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.disclaimer-content p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background-color: var(--darker-bg);
    padding: 60px 0 30px 0;
    color: var(--text-color);
    font-size: 0.95em;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.3em;
    color: var(--heading-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a.deep-link, .footer-column p a.deep-link {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-nav-list a.deep-link:hover, .footer-column p a.deep-link:hover {
    color: var(--primary-color);
}

.footer-logo-link {
    margin-top: 20px;
    display: block;
}

.footer-logo {
    max-height: 45px;
    filter: brightness(1.2);
}

.footer-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.partner-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* Standard height for better alignment */
}

.partner-logo {
    max-width: 140px; /* Adjusted to be between 100-150px */
    max-height: 100%; /* Ensure logos fit within the height */
    width: auto;
    object-fit: contain;
    filter: brightness(1.1); /* Ensure visibility on dark background */
}

.age-restriction-icon {
    max-width: 60px;
    height: auto;
    filter: none; /* No brightness filter for this icon */
}

.copyright-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.85em;
}

.copyright-info i {
    margin-right: 5px;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3em;
    }

    .hero-description {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2em;
    }

    .rating-card {
        padding: 25px;
    }

    .card-title {
        font-size: 1.6em;
    }

    .footer-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-description {
        font-size: 1em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .grid-container, .reviews-grid, .criteria-list {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 15px;
    }

    .cookie-actions {
        width: 100%;
        justify-content: space-around;
        margin-left: 0;
    }

    .cookie-actions .btn {
        flex-grow: 1;
    }

    .modal-content {
        padding: 30px;
    }

    .modal-actions button {
        min-width: unset;
        width: 100%;
        margin: 5px 0;
    }

    .disclaimer-content {
        padding: 30px;
    }

    .disclaimer-title {
        font-size: 1.6em;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-nav-list li {
        margin-bottom: 5px;
    }

    .footer-logo-link {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-description {
        font-size: 0.9em;
    }

    .site-logo {
        max-height: 40px;
    }

    .section-title {
        font-size: 1.5em;
    }

    .rating-card {
        padding: 20px;
    }

    .card-logo {
        max-width: 150px;
    }

    .disclaimer-content {
        padding: 20px;
    }

    .disclaimer-icon {
        font-size: 3em;
    }

    .disclaimer-title {
        font-size: 1.4em;
    }

    .footer-partners-logos {
        gap: 15px;
    }

    .partner-logo {
        max-width: 120px;
    }
}
/* New styles for .termsCaveBox and its children */

.termsCaveBox {
    /* Padding for the content box itself */
    padding: 60px 20px; /* Top/bottom and left/right padding */
    /* Optional: You might want to add max-width, margin: auto, background-color, etc. here
       to make the box stand out, but the request was only for padding. */
}

.termsCaveBox h1 {
    /* Heading 1 styles within .termsCaveBox */
    font-size: 2.5em; /* Approximately 40px if base font is 16px */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    color: var(--heading-color); /* Inherit heading color from theme */
    font-weight: 700; /* Bold font weight */
    line-height: 1.2; /* Line height for readability */
}

.termsCaveBox h2 {
    /* Heading 2 styles within .termsCaveBox */
    font-size: 2em; /* Approximately 32px */
    margin-top: 1.4em;
    margin-bottom: 0.7em;
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
}

.termsCaveBox h3 {
    /* Heading 3 styles within .termsCaveBox */
    font-size: 1.6em; /* Approximately 25.6px */
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.4;
}

.termsCaveBox h4 {
    /* Heading 4 styles within .termsCaveBox */
    font-size: 1.3em; /* Approximately 20.8px */
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.5;
}

.termsCaveBox h5 {
    /* Heading 5 styles within .termsCaveBox */
    font-size: 1.1em; /* Approximately 17.6px */
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.6;
}

.termsCaveBox p {
    /* Paragraph styles within .termsCaveBox */
    margin-bottom: 1em; /* Space between paragraphs */
    line-height: 1.7; /* Improved readability for long text */
    color: var(--text-color); /* Inherit general text color from theme */
}

.termsCaveBox ul {
    /* Unordered list styles within .termsCaveBox */
    list-style: disc; /* Standard bullet points */
    padding-left: 25px; /* Indentation for bullet points */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    color: var(--text-color); /* Ensure list text color */
}

.termsCaveBox ol {
    /* Ordered list styles within .termsCaveBox */
    list-style: decimal; /* Standard numbered list */
    padding-left: 25px; /* Indentation for numbers */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    color: var(--text-color); /* Ensure list text color */
}

.termsCaveBox li {
    /* List item styles within .termsCaveBox */
    margin-bottom: 0.6em; /* Space between individual list items */
    line-height: 1.6; /* Line height for list item readability */
    color: var(--text-color); /* Inherit general text color from theme */
}

/* Optional: Remove top margin for the first element inside the box */
.termsCaveBox h1:first-child,
.termsCaveBox h2:first-child,
.termsCaveBox h3:first-child,
.termsCaveBox h4:first-child,
.termsCaveBox h5:first-child,
.termsCaveBox p:first-child,
.termsCaveBox ul:first-child,
.termsCaveBox ol:first-child {
    margin-top: 0;
}
.rating-criteria-section .criteria-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.rating-criteria-section .criteria-item {
    width: 300px;
}
.logo-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}