@font-face {
  font-family: "Rubik";
  src: url("{{ 'assets/fonts/Rubik/Rubik-VariableFont_wght.ttf'|theme }}");
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

body {
    font-family: "Rubik",  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #2c4c50, #34585e);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo .flag {
    height: 24px;
    border-radius: 50%;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #42cc5b;
}

.search-btn {
    background: none;
    border: none;
    color: white;
    cursor: poRubik;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: poRubik;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #34585e, #2c4c50);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.author-update {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Casino Cards */
.casinos {
    padding: 4rem 0;
}

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

.casino-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    min-height: 150px;
    overflow: hidden;
}

.casino-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.casino-rank {
    position: absolute;
    top: -8px;
    left: 15px;
    background: #e74c3c;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10;
}

.casino-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.casino-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #34585e, #2c4c50);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.casino-logo img {
    width: 70px;
    height: 50px;
    object-fit: contain;
}

.casino-info-left {
    min-width: 0;
    flex: 1;
}

.casino-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #2c4c50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-rating {
    margin-bottom: 0.8rem;
}

.stars {
    color: #42cc5b;
    font-size: 1rem;
}

.casino-features {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.casino-features p {
    margin: 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.3;
}

.casino-center {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
}

.bonus-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c4c50;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
}

.casino-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.promo-code {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    border: 2px dashed #42cc5b;
    border-radius: 6px;
}

.promo-label {
    font-weight: bold;
    color: #2c4c50;
    font-size: 1rem;
}

.copy-btn {
    background: #42cc5b;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: poRubik;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background: #e67e22;
}

.usage-stats p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    text-align: center;
}

.casino-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 200px;
}

.cta-button {
    display: block;
    background: #42cc5b;
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: #e67e22;
}

.codere-btn {
    background: #2c4c50;
}

.codere-btn:hover {
    background: #7cb342;
}

.verification {
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: 500;
    text-align: center;
}

.casino-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terms-section {
    display: flex;
    flex-direction: column;
}

.terms-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #2c4c50;
    font-size: 0.85rem;
}

.terms-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.8rem;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .casino-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 1rem;
        padding: 1rem;
    }

    .casino-left {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
        text-align: center;
    }

    .casino-center {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
        padding: 0;
    }

    .casino-right {
        grid-column: 1;
        grid-row: 3;
        min-width: auto;
    }

    .casino-bottom {
        grid-column: 1;
        grid-row: 4;
        justify-content: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .casino-features {
        text-align: left;
    }

    .cta-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 1024px) {
    .casino-card {
        grid-template-columns: auto 1fr auto;
        gap: 1.5rem;
    }

    .casino-left {
        min-width: 250px;
    }

    .casino-right {
        min-width: 180px;
    }

    .cta-button {
        width: 160px;
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}

/* Footer */
.footer {
    background: #2c4c50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-left {
    font-size: 0.9rem;
}

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

.footer-logos img {
    height: 40px;
    object-fit: contain;
}

.footer-right {
    text-align: right;
    font-size: 0.9rem;
}

.footer-right p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid #34585e;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #42cc5b;
}

/* Mobile Navigation */
.nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2c4c50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav.active ul {
    flex-direction: column;
    padding: 1rem 0;
}

.nav.active .nav-link {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .casino-card {
        margin-bottom: 1.5rem;
        min-height: auto;
    }
    
    .casino-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .casino-left {
        flex-direction: column;
        flex: none;
        gap: 1rem;
        text-align: center;
    }
    
    .casino-center {
        flex: none;
    }
    
    .casino-right {
        flex: none;
        margin-top: 1rem;
    }
    
    .casino-logo {
        flex: none;
        justify-content: center;
    }
    
    .casino-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .casino-card {
        padding: 1rem;
    }
    
    .casino-offer {
        padding: 1rem;
    }
    
    .promo-code {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.casino-card {
    animation: fadeInUp 0.6s ease forwards;
}

.casino-card:nth-child(2) {
    animation-delay: 0.1s;
}

.casino-card:nth-child(3) {
    animation-delay: 0.2s;
}

.casino-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Copy button success state */
.copy-btn.copied {
    background: #27ae60;
}

.copy-btn.copied::after {
    content: "✓";
    margin-left: 5px;
}