/* Clube da Fortuna - Main Stylesheet */
/* Mobile-first responsive design for Portuguese casino review website */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== Skip Link (Accessibility) ========== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    font-size: 14px;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* ========== Age Verification Popup ========== */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.age-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.age-popup__content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10001;
}

.age-popup__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.age-popup__heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d32f2f;
    font-weight: 600;
}

.age-popup__message {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #666;
}

.age-popup__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.age-popup__confirm,
.age-popup__decline {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.age-popup__confirm {
    background: #4caf50;
    color: white;
}

.age-popup__confirm:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.age-popup__decline {
    background: #f44336;
    color: white;
}

.age-popup__decline:hover {
    background: #da190b;
    transform: translateY(-2px);
}

.age-popup__confirm:focus,
.age-popup__decline:focus {
    outline: 3px solid #007acc;
    outline-offset: 2px;
}

/* ========== Back Navigation ========== */
.back-nav {
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.back-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #007acc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-nav__link:hover {
    color: #005a99;
}

.back-nav__link i {
    font-size: 1.2rem;
}

/* ========== Header ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    display: none;
}

.header__nav-list {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.header__nav-link:hover {
    color: #007acc;
}

.header__nav-link--active {
    color: #007acc;
}

.header__nav-link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007acc;
}

.header__hamburger {
    display: block;
    font-size: 1.5rem;
    color: #333;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.header__hamburger:hover {
    color: #007acc;
}

.header__mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header__mobile-menu.active {
    max-height: 300px;
}

.header__mobile-nav {
    padding: 1rem 0;
}

.header__mobile-link {
    display: block;
    padding: 1rem 2rem;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.header__mobile-link:hover {
    background-color: #f8f9fa;
    color: #007acc;
}

/* ========== Hero Section ========== */
.hero {
    background: linear-gradient(rgba(0, 122, 204, 0.8), rgba(0, 122, 204, 0.8)), url('../../public/images/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero__container {
    max-width: 1200px;
    padding: 0.5rem 2rem;
    margin: 0 auto;
}

.hero__heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subheading {
    font-size: 1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========== Platform Cards Section ========== */
.platforms {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.platforms__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.platform-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #007acc;
}

.platform-card__badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(255, 183, 0, 0.3);
}

.platform-card__group1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.platform-card__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 0.5rem;
}

.platform-card__rating {
    text-align: center;
}

.platform-card__stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.platform-card__stars i {
    color: #ffd700;
    font-size: 1.2rem;
}

.platform-card__reviews {
    color: #666;
    font-size: 0.9rem;
}

.platform-card__group2 {
    text-align: center;
}

.platform-card__bonus {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.platform-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-card__features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.platform-card__features i {
    color: #4caf50;
    font-size: 1rem;
}

.platform-card__group3 {
    text-align: center;
}

.platform-card__selling-points {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.platform-card__selling-points li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.platform-card__selling-points i {
    color: #4caf50;
    font-size: 1rem;
}

.platform-card__button {
    background: linear-gradient(135deg, #007acc, #005a99);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(0, 122, 204, 0.3);
}

.platform-card__button:hover {
    background: linear-gradient(135deg, #005a99, #004080);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 204, 0.4);
}

/* ========== Features Section ========== */
.features {
    padding: 4rem 2rem;
    background: #fff;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.features__heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.feature:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature__icon {
    font-size: 3rem;
    color: #007acc;
    margin-bottom: 1rem;
}

.feature__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.feature__description {
    color: #666;
    line-height: 1.6;
}

.features__conclusion {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #007acc;
}

/* ========== Evaluation Section ========== */
.evaluation {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.evaluation__container {
    max-width: 1200px;
    margin: 0 auto;
}

.evaluation__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.evaluation__column {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.evaluation__heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
}

.evaluation__text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.evaluation__text:last-child {
    margin-bottom: 0;
}

/* ========== Footer ========== */
.footer {
    background: #333;
    color: #fff;
    padding: 3rem 2rem 1rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #555;
}

.footer__brand {
    text-align: center;
}

.footer__logo img {
    height: 40px;
    width: auto;
    margin: 0 auto 1rem;
}

.footer__message {
    color: #ccc;
    font-size: 1rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer__column {
    text-align: center;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__link {
    color: #ccc;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer__link:hover {
    color: #007acc;
}

.footer__legal {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #444;
    border-radius: 8px;
}

.footer__legal-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.footer__responsible {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

.footer__responsible-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.footer__responsible-logos img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer__responsible-logos img:hover {
    opacity: 1;
}

.footer__age-limit img {
    height: 50px;
    width: auto;
}

.footer__disclaimers {
    margin: 2rem 0;
    text-align: center;
}

.footer__disclaimer,
.footer__responsibility {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer__responsibility {
    font-weight: 500;
    color: #ffeb3b;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

.footer__copyright,
.footer__updated {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* ========== Legal Pages ========== */
.legal-hero {
    background: linear-gradient(135deg, #007acc, #005a99);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.legal-hero__container {
    max-width: 1200px;
    margin: 0 auto;
}

.legal-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.legal-content {
    padding: 4rem 2rem;
    background: #fff;
}

.legal-content__container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content__body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #007acc;
    padding-bottom: 0.5rem;
}

.legal-content__body h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: #555;
    font-weight: 600;
}

.legal-content__body p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #666;
}

.legal-content__body ul,
.legal-content__body ol {
    margin: 1rem 0 1rem 2rem;
    list-style: disc;
}

.legal-content__body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #666;
}

.legal-content__body strong {
    color: #333;
    font-weight: 600;
}

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* ========== Tablet Styles ========== */
@media (min-width: 768px) {
    .header__hamburger {
        display: none;
    }
    
    .header__nav {
        display: block;
    }
    
    .header__mobile-menu {
        display: none;
    }
    
    .hero {
        min-height: 200px;
    }
    
    .hero__heading {
        font-size: 2rem;
    }
    
    .hero__subheading {
        font-size: 1.1rem;
    }
    
    .platform-card {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
    
    .platform-card__group1,
    .platform-card__group2,
    .platform-card__group3 {
        flex: 1;
    }
    
    .platform-card__group1 {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
    
    .platform-card__logo {
        width: 100px;
        height: 100px;
    }
    
    .platform-card__rating {
        text-align: left;
    }
    
    .platform-card__features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .platform-card__selling-points {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .evaluation__content {
        flex-direction: row;
        gap: 2rem;
    }
    
    .evaluation__column {
        flex: 1;
    }
    
    .footer__top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer__brand {
        text-align: left;
        flex: 1;
    }
    
    .footer__links {
        flex-direction: row;
        gap: 3rem;
    }
    
    .footer__column {
        text-align: left;
    }
    
    .footer__responsible {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========== Desktop Styles ========== */
@media (min-width: 1024px) {
    .hero__heading {
        font-size: 2.5rem;
    }
    
    .hero__subheading {
        font-size: 1.2rem;
    }
    
    .platforms {
        padding: 4rem 2rem;
    }
    
    .platform-card {
        padding: 2rem;
    }
    
    .platform-card__logo {
        width: 120px;
        height: 120px;
    }
    
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .legal-hero__title {
        font-size: 3rem;
    }
}

/* ========== Large Desktop Styles ========== */
@media (min-width: 1200px) {
    .hero {
        background-attachment: fixed;
    }
    
    .platforms__container {
        gap: 3rem;
    }
    
    .platform-card {
        padding: 2.5rem;
    }
}

/* ========== Print Styles ========== */
@media print {
    .header,
    .age-popup,
    .back-nav,
    .footer__responsible,
    .footer__disclaimers {
        display: none;
    }
    
    .hero {
        background: #007acc;
        color: white;
        -webkit-print-color-adjust: exact;
    }
    
    .platform-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* ========== High Contrast Mode ========== */
@media (prefers-contrast: high) {
    .platform-card {
        border: 2px solid #000;
    }
    
    .feature {
        border: 1px solid #666;
    }
    
    .footer {
        border-top: 3px solid #000;
    }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero {
        background-attachment: scroll;
    }
}