/* SoFlo Wheelie Life - Global Styles */

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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #ffd700;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #999;
    font-weight: bold;
}

.breadcrumb li:last-child {
    color: #666;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--secondary-color), #003d6b);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap;
}

.logo a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.logo a:hover .logo-text {
    color: var(--accent-color);
}

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

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0 4rem;
    text-align: center;
    color: #fff;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease;
}

/* Game Container */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
}

.game-wrapper {
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.iframe-container {
    position: relative;
    width: 100%;
    min-height: 402px;
    background: #000;
}

.iframe-container iframe {
    display: block;
    width: 100%;
    height: 402px;
    border: none;
}

/* Game Loading Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), #003d6b);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-overlay.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Play Button */
.play-button {
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), #ff8555);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.play-button:hover .play-icon {
    background: linear-gradient(135deg, #ff8555, var(--primary-color));
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
    transform: scale(1.05);
}

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

.game-preview-info {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.game-preview-info p {
    margin: 0.5rem 0;
}

.game-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    font-size: 1.2rem;
    font-weight: 500;
}

#gameCanvas {
    width: 100%;
    height: 500px;
    display: block;
    cursor: pointer;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
}

.btn-control {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-control:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-control:active {
    transform: translateY(0);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    font-size: 1.1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-weight: bold;
    color: var(--accent-color);
}

#distance, #score, #bestScore {
    color: #0f0;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Fullscreen mode */
.game-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: #000;
}

.game-wrapper.fullscreen .iframe-container {
    flex: 1;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-wrapper.fullscreen .iframe-container iframe {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: calc(100vh - 60px);
    object-fit: contain;
}

.game-wrapper.fullscreen .game-controls {
    position: relative;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 10000;
}

.game-wrapper.fullscreen #gameCanvas {
    height: calc(100vh - 100px);
}

/* Fullscreen iframe directly */
iframe:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
    object-fit: contain;
}

iframe:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
    object-fit: contain;
}

iframe:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
    object-fit: contain;
}

iframe:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
    object-fit: contain;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.bg-light {
    background: var(--bg-light);
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* How to Play Grid */
.how-to-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.how-to-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.how-to-card h3 {
    margin-top: 1rem;
    color: var(--secondary-color);
}

/* Controls Info */
.controls-info {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.controls-info h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.controls-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.controls-list li {
    padding: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    transition: var(--transition);
}

.controls-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Tips Grid */
.tips-content {
    max-width: 900px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tip-item h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 2rem auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    background: var(--secondary-color);
    color: #fff;
    padding: 1.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0;
    transition: var(--transition);
}

.faq-question:hover {
    background: #003d6b;
}

.faq-answer {
    padding: 1.5rem;
    line-height: 1.8;
    background: #fff;
}

.faq-answer p {
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #ff8555);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background: #fff;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 3rem 0 1rem;
}

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

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

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-keywords {
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.7;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    /* Play Button Responsive */
    .play-icon {
        width: 80px;
        height: 80px;
        font-size: 38px;
    }

    .play-text {
        font-size: 1.2rem;
    }

    .game-preview-info {
        font-size: 0.9rem;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .iframe-container iframe {
        height: 350px;
    }

    #gameCanvas {
        height: 350px;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .how-to-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-stats {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .controls-list {
        grid-template-columns: 1fr;
    }

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

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Play Button Small Screen */
    .play-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .play-text {
        font-size: 1rem;
    }

    .game-preview-info {
        font-size: 0.85rem;
    }

    .game-hint {
        font-size: 0.8rem;
    }

    .recommendations-header h2 {
        font-size: 1.5rem;
    }

    .recommendation-image {
        min-height: 150px;
        padding: 1.5rem;
    }

    .recommendation-image img {
        max-width: 100px;
        max-height: 100px;
    }

    .recommendation-content h3 {
        font-size: 1.2rem;
    }

    .recommendation-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-play {
        width: 100%;
        justify-content: center;
    }

    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero-section h1 {
        font-size: 1.4rem;
    }

    .iframe-container iframe {
        height: 300px;
    }

    #gameCanvas {
        height: 300px;
    }

    .game-controls {
        flex-direction: column;
    }

    .btn-control {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 2rem 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Games Page Styles */
.game-item {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.game-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-header h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 0;
}

.game-badge {
    background: linear-gradient(135deg, var(--primary-color), #ff8555);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.game-description {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-features-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.game-features-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.game-features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.game-preview {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.game-preview .iframe-container {
    min-height: 300px;
}

.game-preview .iframe-container iframe {
    height: 300px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-buttons .btn-primary {
    flex: 1;
    min-width: 250px;
}

/* Print styles */
@media print {
    .navbar,
    .game-wrapper,
    .cta-section,
    .footer,
    .game-recommendations {
        display: none;
    }
}

/* Game Recommendations Component */
.game-recommendations {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.game-recommendations.visible {
    opacity: 1;
    transform: translateY(0);
}

.recommendations-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.recommendations-header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.recommendations-header p {
    font-size: 1.1rem;
    color: #666;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recommendation-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.recommendation-image {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color), #003d6b);
    padding: 2rem;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recommendation-image img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.platform-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.recommendation-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recommendation-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.recommendation-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.recommendation-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.feature-tag {
    background: #e9ecef;
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.recommendation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.difficulty-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.difficulty-beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty-intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty-advanced {
    background: #f8d7da;
    color: #721c24;
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-color), #ff8555);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover {
    background: linear-gradient(135deg, #ff8555, var(--primary-color));
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Responsive Design for Games Page */
@media (max-width: 768px) {
    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .recommendations-header h2 {
        font-size: 1.8rem;
    }

    .game-content {
        grid-template-columns: 1fr;
    }

    .game-header h3 {
        font-size: 1.4rem;
    }

    .game-preview .iframe-container iframe {
        height: 250px;
    }

    .cta-buttons .btn-primary {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .game-item {
        padding: 1.5rem;
    }

    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-header h3 {
        font-size: 1.2rem;
    }

    .game-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .game-preview .iframe-container iframe {
        height: 200px;
    }
}
