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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Fixed Background with Image and Overlay */
.clp-fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    
    /* Background image - add your image here */
    background-image: url('images/back.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Dark overlay for depth (optional, can be removed) */
.clp-fixed-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 28, 44, 0.3) 0%, 
        rgba(22, 33, 62, 0.3) 50%, 
        rgba(15, 52, 96, 0.3) 100%);
    z-index: -1;
}

.clp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.clp-hero-section {
    text-align: center;
    padding: 60px 20px 40px;
}

.clp-logo-area {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 60px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.clp-site-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.clp-tagline {
    font-size: 1.3em;
    color: #FFD700;
    font-weight: 600;
}

/* Sections */
section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.clp-section-heading {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.clp-intro-text {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Games Grid */
.clp-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.clp-game-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 15px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.clp-game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.clp-game-link {
    text-decoration: none;
    color: inherit;
}

.clp-game-thumbnail {
    position: relative;
    height: 350px;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.clp-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clp-game-card:hover .clp-game-overlay {
    opacity: 1;
}

.clp-demo-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    transition: transform 0.2s ease;
}

.clp-demo-btn:hover {
    transform: scale(1.1);
}

.clp-game-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #FFD700;
}

.clp-game-description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.5;
}

.clp-game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clp-feature-tag {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid #FFD700;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    color: #FFD700;
}

/* Benefits Grid */
.clp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.clp-benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.clp-benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.clp-benefit-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.clp-benefit-card h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFD700;
}

.clp-benefit-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.clp-footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 60px;
}

.clp-age-badge {
    display: inline-block;
    background: linear-gradient(45deg, #FF1744, #FF4081);
    color: white;
    font-size: 2em;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 15px;
    border: 3px solid white;
}

.clp-footer-links {
    margin: 20px 0;
    font-size: 1.1em;
}

.clp-footer-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.clp-footer-link:hover {
    color: #FFA500;
    text-decoration: underline;
}

.clp-separator {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.5);
}

.clp-disclaimer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    line-height: 1.6;
    margin: 20px auto;
    max-width: 700px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.clp-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .clp-site-title {
        font-size: 2em;
    }
    
    .clp-tagline {
        font-size: 1em;
    }
    
    .clp-logo-area {
        padding: 30px 40px;
    }
    
    .clp-section-heading {
        font-size: 1.8em;
    }
    
    .clp-games-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 25px 20px;
    }
    
    .clp-game-thumbnail {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .clp-container {
        padding: 10px;
    }
    
    .clp-intro-text {
        font-size: 1em;
    }
    
    .clp-game-title {
        font-size: 1.3em;
    }
}

/* ============================================
   GAME DEMO OVERLAY MODAL
   ============================================ */

.clp-demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clp-demo-modal.clp-modal-open {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.clp-demo-modal-content {
    width: 95%;
    height: 95%;
    max-width: 1400px;
    max-height: 900px;
    background: #1a1c2c;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.clp-demo-modal-header {
    background: linear-gradient(135deg, #2a1a4a, #1a1c2c);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.clp-demo-modal-title {
    color: #FFD700;
    font-size: 1.3em;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.clp-demo-modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.clp-play-real-btn {
    background: linear-gradient(45deg, #FF4E50, #F9D423);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 78, 80, 0.3);
}

.clp-play-real-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 78, 80, 0.5);
}

.clp-close-demo-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.clp-close-demo-btn:hover {
    background: rgba(255, 78, 80, 0.8);
    border-color: #FF4E50;
    transform: rotate(90deg);
}

.clp-demo-modal-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.clp-demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Cursor pointer for game cards */
.clp-game-card {
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .clp-demo-modal-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .clp-demo-modal-header {
        padding: 12px 15px;
    }
    
    .clp-demo-modal-title {
        font-size: 1.1em;
    }
    
    .clp-play-real-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .clp-close-demo-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .clp-demo-modal-title {
        font-size: 1em;
    }
    
    .clp-demo-modal-actions {
        gap: 10px;
    }
    
    .clp-play-real-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
}
