/* Funroller.org - Modern Norwegian Gaming Platform */
/* Complete redesign with unique color palette */

:root {
    --funroller-primary: #FF6B35;
    --funroller-secondary: #004E89;
    --funroller-accent: #F7C548;
    --funroller-dark: #1A1A2E;
    --funroller-light: #F9FAFB;
    --funroller-text: #2D3748;
    --funroller-text-light: #718096;
    --funroller-success: #38A169;
    --funroller-error: #E53E3E;
    --funroller-border: #E2E8F0;
    --funroller-shadow: rgba(0, 0, 0, 0.1);
    --funroller-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--funroller-text);
    background-color: var(--funroller-light);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* Navigation Styles */
.funroller-navbar {
    background: linear-gradient(135deg, var(--funroller-dark) 0%, var(--funroller-secondary) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--funroller-shadow);
}

.funroller-navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.funroller-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    gap: 12px;
    transition: var(--funroller-transition);
}

.funroller-brand:hover {
    color: var(--funroller-accent);
    transform: scale(1.05);
}

.funroller-logo {
    height: 45px;
    width: auto;
}

.funroller-nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.funroller-nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--funroller-transition);
    font-weight: 500;
    position: relative;
}

.funroller-nav-link:hover,
.funroller-nav-link.funroller-active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--funroller-accent);
}

.funroller-nav-cta {
    background: linear-gradient(135deg, var(--funroller-primary), var(--funroller-accent));
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--funroller-transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.funroller-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Toggle */
.funroller-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.funroller-menu-bar {
    width: 28px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--funroller-transition);
}

/* Hero Section */
.funroller-hero {
    background: linear-gradient(135deg, var(--funroller-secondary) 0%, var(--funroller-primary) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.funroller-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 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,133.3C672,117,768,107,864,122.7C960,139,1056,181,1152,181.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.funroller-hero-content {
    position: relative;
    z-index: 1;
}

.funroller-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: funroller-float 3s ease-in-out infinite;
}

@keyframes funroller-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.funroller-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.funroller-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.funroller-btn {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: var(--funroller-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--funroller-transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.funroller-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.funroller-btn-secondary {
    background: transparent;
    border: 2px solid white;
}

.funroller-btn-secondary:hover {
    background: white;
    color: var(--funroller-primary);
}

/* Section Styles */
.funroller-section {
    padding: 80px 0;
}

.funroller-section-alt {
    background-color: white;
}

.funroller-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--funroller-dark);
}

.funroller-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--funroller-text-light);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.funroller-grid {
    display: grid;
    gap: 30px;
}

.funroller-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.funroller-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.funroller-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Styles */
.funroller-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--funroller-shadow);
    transition: var(--funroller-transition);
    border: 1px solid var(--funroller-border);
}

.funroller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.funroller-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--funroller-primary), var(--funroller-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.funroller-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--funroller-dark);
}

.funroller-card-text {
    color: var(--funroller-text-light);
    line-height: 1.7;
}

/* Game Cards */
.funroller-game-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px var(--funroller-shadow);
    transition: var(--funroller-transition);
    border: 2px solid transparent;
}

.funroller-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border-color: var(--funroller-primary);
}

.funroller-game-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.funroller-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--funroller-transition);
}

.funroller-game-card:hover .funroller-game-image img {
    transform: scale(1.1);
}

.funroller-game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--funroller-primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.funroller-game-content {
    padding: 25px;
}

.funroller-game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--funroller-dark);
}

.funroller-game-desc {
    color: var(--funroller-text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.funroller-game-play {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--funroller-primary), var(--funroller-accent));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--funroller-transition);
}

.funroller-game-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Statistics */
.funroller-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.funroller-stat-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--funroller-shadow);
}

.funroller-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--funroller-primary);
    display: block;
    margin-bottom: 10px;
}

.funroller-stat-label {
    color: var(--funroller-text-light);
    font-weight: 500;
}

/* Footer */
.funroller-footer {
    background: var(--funroller-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.funroller-footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--funroller-accent);
}

.funroller-footer-section p,
.funroller-footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--funroller-transition);
}

.funroller-footer-section a:hover {
    color: var(--funroller-accent);
    padding-left: 5px;
}

.funroller-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.funroller-disclaimer p {
    margin-bottom: 15px;
}

.funroller-footer-link {
    color: var(--funroller-accent);
    text-decoration: none;
}

.funroller-footer-link:hover {
    text-decoration: underline;
}

.funroller-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Form */
.funroller-form-group {
    margin-bottom: 25px;
}

.funroller-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--funroller-dark);
}

.funroller-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--funroller-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--funroller-transition);
    font-family: inherit;
}

.funroller-form-control:focus {
    outline: none;
    border-color: var(--funroller-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.funroller-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Cookie Popup */
.funroller-cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px var(--funroller-shadow);
    padding: 25px;
    z-index: 10000;
    display: none;
    animation: funroller-slide-up 0.5s ease;
}

@keyframes funroller-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.funroller-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.funroller-cookie-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--funroller-dark);
    margin-bottom: 8px;
}

.funroller-cookie-text {
    color: var(--funroller-text-light);
    flex: 1;
    min-width: 300px;
}

.funroller-cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.funroller-cookie-accept {
    padding: 12px 30px;
    background: var(--funroller-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--funroller-transition);
}

.funroller-cookie-accept:hover {
    background: var(--funroller-secondary);
}

.funroller-cookie-policy {
    color: var(--funroller-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Modal */
.funroller-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.funroller-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.funroller-modal-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--funroller-secondary), var(--funroller-primary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.funroller-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.funroller-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--funroller-transition);
}

.funroller-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.funroller-modal-body {
    padding: 0;
    height: 70vh;
}

.funroller-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Alert Messages */
.funroller-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.funroller-alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.funroller-alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.funroller-alert-info {
    background: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Utility Classes */
.funroller-text-center {
    text-align: center;
}

.funroller-mb-5 {
    margin-bottom: 3rem;
}

.funroller-mt-5 {
    margin-top: 3rem;
}

/* Contact Page Specific */
.funroller-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.funroller-contact-info {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 6px 25px var(--funroller-shadow);
}

.funroller-contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--funroller-border);
}

.funroller-contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.funroller-contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--funroller-primary), var(--funroller-accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.funroller-contact-info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--funroller-dark);
}

.funroller-contact-info-content p,
.funroller-contact-info-content a {
    color: var(--funroller-text-light);
    text-decoration: none;
}

.funroller-contact-info-content a:hover {
    color: var(--funroller-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .funroller-hero h1 {
        font-size: 2.5rem;
    }

    .funroller-contact-grid {
        grid-template-columns: 1fr;
    }

    .funroller-grid-3,
    .funroller-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .funroller-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .funroller-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--funroller-dark);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 0;
        transition: var(--funroller-transition);
        box-shadow: -5px 0 20px var(--funroller-shadow);
    }

    .funroller-nav-menu.funroller-active {
        gap:32px;
        right: 0;
    }

    .funroller-nav-link {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .funroller-nav-cta {
        margin-top: 20px;
        text-align: center;
    }

    .funroller-hero h1 {
        font-size: 2rem;
    }

    .funroller-hero-subtitle {
        font-size: 1.1rem;
    }

    .funroller-section-title {
        font-size: 2rem;
    }

    .funroller-form-row {
        grid-template-columns: 1fr;
    }

    .funroller-cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .funroller-cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .funroller-cookie-accept {
        width: 100%;
    }

    .funroller-grid-2,
    .funroller-grid-3,
    .funroller-grid-4 {
        grid-template-columns: 1fr;
    }

    .funroller-modal-body {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .funroller-hero h1 {
        font-size: 1.8rem;
    }

    .funroller-section {
        padding: 50px 0;
    }

    .funroller-stat-number {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
.funroller-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: funroller-spin 0.8s linear infinite;
}

@keyframes funroller-spin {
    to { transform: rotate(360deg); }
}

/* Smooth Animations */
.funroller-fade-in {
    animation: funroller-fadeIn 0.6s ease-in;
}

@keyframes funroller-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional utility classes */
.funroller-max-width-900 {
    max-width: 900px;
    margin: 0 auto;
}

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

.funroller-max-width-700 {
    max-width: 700px;
    margin: 0 auto;
}

.funroller-legal-title {
    color: var(--funroller-dark);
    margin-bottom: 20px;
    word-wrap: break-word;
}

.funroller-legal-date {
    color: var(--funroller-text-light);
    margin-bottom: 30px;
}

.funroller-legal-content {
    line-height: 1.8;
    color: var(--funroller-text);
}

.funroller-legal-h2 {
    color: var(--funroller-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.funroller-legal-h3 {
    color: var(--funroller-dark);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.funroller-legal-list {
    margin-left: 20px;
    margin-top: 10px;
}

.funroller-legal-list-item {
    margin-bottom: 8px;
}

.funroller-legal-list-nostyle {
    list-style: none;
    margin-left: 20px;
    margin-top: 10px;
}

.funroller-section-header {
    margin-bottom: 30px;
    color: var(--funroller-dark);
}

.funroller-section-text {
    color: var(--funroller-text-light);
    margin-bottom: 30px;
}

.funroller-full-width-btn {
    width: 100%;
}

.funroller-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--funroller-text);
}

.funroller-about-text-mt {
    margin-top: 20px;
}

.funroller-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.funroller-alert h4 {
    margin-bottom: 10px;
}

.funroller-alert-mt {
    margin-top: 40px;
}

.funroller-alert-mb {
    margin-bottom: 30px;
}

