/* ===== FREE SPINS PAGE STYLES ===== */

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--bg-secondary);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--text-sm);
}

.breadcrumb-nav a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.breadcrumb-nav a:hover {
    color: var(--accent-hover);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-secondary);
}

/* ===== FREE SPINS HERO SECTION ===== */
.freespins-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.freespins-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="magic" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10,2 L12,8 L18,10 L12,12 L10,18 L8,12 L2,10 L8,8 Z" fill="%2300ff8820"/></pattern></defs><rect width="100" height="100" fill="url(%23magic)"/></svg>');
    opacity: 0.3;
}

.freespins-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.freespins-hero h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.freespins-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.freespins-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.freespins-hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

/* ===== FILTER SECTION ===== */
.freespins-filters {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-md) var(--spacing-xl);
    top: 80px;
    z-index: 50;
    backdrop-filter: blur(15px);
    margin: var(--spacing-xl) 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
}

.freespins-filters:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.filter-header h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-header h2 i {
    color: var(--accent-color);
    font-size: var(--text-base);
}

.filter-count {
    background: var(--secondary-gradient);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-controls {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 130px;
}

.filter-group label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    min-width: 130px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15);
    background: var(--bg-elevated);
}

.filter-select:hover {
    border-color: var(--accent-color);
    background: var(--bg-elevated);
    transform: translateY(-1px);
}

.filter-controls .btn {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    white-space: nowrap;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.filter-controls .btn:hover {
    transform: translateY(-1px);
}

/* ===== FREE SPINS CONTENT ===== */
.freespins-content {
    padding: var(--spacing-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ALL OFFERS SECTION ===== */
.all-offers-section {
    margin-bottom: var(--spacing-3xl);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* ===== FREE SPINS CARDS ===== */
.freespins-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.freespins-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.1);
}

.freespins-card.featured {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, var(--bg-card) 100%);
}

.freespins-card.featured::before {
    content: 'DESTAQUE';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.freespins-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.casino-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-primary);
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.casino-info {
    flex: 1;
}

.casino-name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.rating-stars .star {
    color: #FFD700;
    font-size: var(--text-xs);
}

.rating-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.freespins-offer {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(0, 255, 136, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.freespins-amount {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.freespins-game {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.freespins-description {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.freespins-details {
    margin-bottom: var(--spacing-md);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--text-xs);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-value.highlight {
    color: var(--accent-color);
}

.freespins-terms {
    background: var(--bg-secondary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.freespins-terms h4 {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.freespins-terms ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.freespins-terms li {
    font-size: 10px;
    color: var(--text-muted);
    padding: 1px 0;
    position: relative;
    padding-left: 8px;
    line-height: 1.3;
}

.freespins-terms li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.freespins-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.freespins-actions .btn {
    flex: 1;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--text-xs);
}

.btn-claim {
    background: var(--secondary-gradient);
    color: var(--bg-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-claim:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

/* ===== HOW IT WORKS ===== */
.how-works-section {
    background: var(--bg-secondary);
    padding: var(--spacing-3xl) 0;
    margin: var(--spacing-3xl) 0;
    border-radius: var(--radius-2xl);
}

.how-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.how-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-gradient);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 800;
    margin: 0 auto var(--spacing-md);
}

.step-content h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.spins-example {
    text-align: center;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

.example-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    margin: 0 auto var(--spacing-md);
}

.example-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.example-calculation {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.highlight {
    background: rgba(0, 255, 136, 0.1);
    margin: 0 calc(-1 * var(--spacing-lg));
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.calc-row.total {
    border-top: 2px solid var(--accent-color);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--accent-color);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

.calc-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.calc-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== TYPES SECTION ===== */
.types-section {
    margin-bottom: var(--spacing-3xl);
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.type-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.type-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-gradient);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    margin: 0 auto var(--spacing-md);
}

.type-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    text-align: center;
}

.type-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.type-pros {
    text-align: left;
}

.type-pros strong {
    color: var(--accent-color);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.type-pros ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-pros li {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: 20px;
}

.type-pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin-bottom: var(--spacing-3xl);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-elevated);
}

.faq-question h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--accent-color);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 0;
}

/* ===== TIPS SECTION ===== */
.tips-section {
    margin-bottom: var(--spacing-3xl);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.tip-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-gradient);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    margin: 0 auto var(--spacing-md);
}

.tip-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.tip-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* ===== ANIMATIONS ===== */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes filterApplied {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.stat-number.counting {
    animation: countUp 0.8s ease-out;
}

.freespins-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.freespins-card:nth-child(1) { animation-delay: 0.1s; }
.freespins-card:nth-child(2) { animation-delay: 0.2s; }
.freespins-card:nth-child(3) { animation-delay: 0.3s; }

.freespins-filters.filtering {
    animation: filterApplied 0.6s ease-out;
}

.filter-count.updated {
    animation: pulse 1s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .freespins-filters {
        top: 60px;
        padding: var(--spacing-md);
        margin: var(--spacing-lg) var(--spacing-sm);
        border-radius: var(--radius-xl);
    }

    .filter-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }

    .filter-header h2 {
        font-size: var(--text-base);
        justify-content: center;
    }

    .filter-count {
        align-self: center;
        font-size: var(--text-xs);
    }

    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
        width: 100%;
    }

    .filter-group {
        width: 100%;
        min-width: unset;
    }

    .filter-group label {
        font-size: 10px;
        text-align: center;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
        padding: var(--spacing-sm);
        text-align: center;
    }

    .filter-controls .btn {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-lg);
        justify-content: center;
    }

    .filter-controls .btn:last-child,
    .filter-controls .btn:nth-last-child(2) {
        width: calc(50% - var(--spacing-xs));
        display: inline-flex;
    }

    .filter-controls {
        gap: var(--spacing-sm);
    }

    .filter-controls > *:last-child,
    .filter-controls > *:nth-last-child(2) {
        margin-top: var(--spacing-sm);
    }

    .freespins-hero h1 {
        font-size: var(--text-3xl);
    }
    
    .freespins-hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .freespins-hero-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .freespins-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .freespins-header {
        flex-direction: row;
        text-align: left;
    }
    
    .freespins-actions {
        flex-direction: column;
    }
    
    .how-works-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .freespins-filters {
        margin: var(--spacing-sm);
        padding: var(--spacing-sm);
        border-radius: var(--radius-lg);
    }

    .filter-header h2 {
        font-size: var(--text-sm);
    }

    .filter-count {
        font-size: 10px;
        padding: var(--spacing-xs);
    }

    .filter-controls .btn:last-child,
    .filter-controls .btn:nth-last-child(2) {
        width: 100%;
        margin-top: var(--spacing-xs);
    }

    .freespins-card {
        padding: var(--spacing-md);
    }
    
    .casino-logo {
        width: 40px;
        height: 40px;
        font-size: var(--text-xs);
    }
    
    .freespins-amount {
        font-size: var(--text-lg);
    }
    
    .freespins-game {
        font-size: var(--text-sm);
    }
    
    .faq-question {
        padding: var(--spacing-sm);
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: var(--text-base);
    }
    
    .freespins-offer {
        padding: var(--spacing-sm);
    }
    
    .freespins-terms {
        padding: var(--spacing-xs);
    }
    
    .freespins-terms li {
        font-size: 9px;
    }

    .example-card {
        padding: var(--spacing-lg);
    }

    .calc-row.highlight {
        margin: 0 calc(-1 * var(--spacing-lg));
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .type-card {
        padding: var(--spacing-lg);
    }
}