/* ============================================================
   Home Landing Page - Mobile Responsive Styles
   CCE Platform
   ============================================================ */

/* ============ Large Screens (1200px) ============ */
@media (max-width: 1200px) {
    .hero-floating-stats {
        display: none;
    }
}

/* ============ Tablets (1100px) ============ */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-container {
        gap: 20px;
    }

    .step-arrow {
        display: none;
    }

    .step-item {
        width: calc(33% - 20px);
        min-width: 140px;
    }
}

/* ============ Smaller Tablets (900px) ============ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-visual .profile-stats-snippet,
    .report-visual .investigation-board {
        transform: perspective(1000px) rotateY(0deg) scale(1);
    }
}

/* ============ Large Mobile (800px) ============ */
@media (max-width: 800px) {
    /* Why Compete sections - show content first, then image */
    .why-compete-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .why-compete-row.reverse {
        direction: ltr;
    }

    /* Content (title + paragraph) comes first */
    .why-compete-content {
        order: 1 !important;
    }

    /* Visual (image) comes second */
    .why-compete-visual {
        order: 2 !important;
        width: 100%;
    }

    /* Same order for reverse row */
    .why-compete-row.reverse .why-compete-content {
        order: 1 !important;
    }

    .why-compete-row.reverse .why-compete-visual {
        order: 2 !important;
    }

    /* Keep both visuals same size */
    .why-compete-visual .investigation-board,
    .why-compete-visual .profile-stats-snippet {
        max-width: 100%;
        width: 100%;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq-header-side {
        position: static;
        text-align: center;
    }
}

/* ============ Mobile devices (768px) ============ */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 0 16px;
        height: 60px;
    }

    .header-right {
        gap: 8px;
    }

    .auth-button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .auth-button span {
        display: none;
    }

    /* Hide login/logout button on mobile */
    .auth-button.login {
        display: none !important;
    }

    /* Make info-btn match login button style */
    .auth-button.info-btn {
        background: transparent;
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 10px 12px;
        font-size: 14px;
    }

    .auth-button.info-btn:hover {
        border-color: #f4012b;
        color: #f4012b;
    }

    .logo {
        height: 40px;
    }

    /* Hero section - LEFT ALIGNED like desktop */
    .hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 40px;
        justify-content: flex-start;
    }

    .hero-content {
        padding: 0 20px;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }

    .hero-accent-line {
        margin: 0 0 16px 0;
        width: 60px;
    }

    .hero-badge {
        padding: 8px 14px;
        font-size: 10px;
        margin-bottom: 16px;
    }

    .hero-title-wrapper {
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 2rem;
        letter-spacing: 2px;
        line-height: 1.15;
        text-align: left;
    }

    .hero-description {
        border-left: 2px solid rgba(244, 1, 43, 0.5);
        border-top: none;
        padding-left: 16px;
        padding-top: 0;
        margin-bottom: 24px;
        font-size: 0.9rem;
        line-height: 1.6;
        max-width: 100%;
        text-align: left;
    }

    .hero-logo {
        height: 80px;
        margin-bottom: 16px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: flex-start;
    }

    .hero-cta .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 24px;
    }

    .scroll-indicator {
        display: none;
    }

    /* Video background - ensure it plays on mobile */
    .hero-video-background video {
        object-fit: cover;
        min-width: 100%;
        min-height: 100%;
    }

    /* Stats section */
    .stats-section {
        gap: 24px;
        padding: 40px 20px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Matchmaking header */
    .matchmaking-header-inner {
        padding: 20px 16px;
    }

    .matchmaking-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .matchmaking-line {
        max-width: 30px;
    }

    .matchmaking-subtitle {
        font-size: 0.85rem;
    }

    /* Queue Tutorial / Interactive Demo */
    .queue-tutorial-container {
        padding: 55px 15px 20px;
        border-radius: 16px;
    }

    .tutorial-badge {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
    }

    .tutorial-badge span {
        font-size: 0.6rem;
    }

    .tutorial-phases {
        gap: 0;
        margin-bottom: 20px;
    }

    .phase-num {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .phase-label {
        font-size: 0.55rem;
    }

    .phase-line {
        max-width: 30px;
        margin: 0 5px;
    }

    .tutorial-team-formation {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Hide teammate slots on mobile */
    .tutorial-teammate-slot {
        display: none !important;
    }

    /* YOUR NAME player card - full width to match Join Queue button */
    .tutorial-player-card {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: 260px;
    }

    /* Join Queue button - full width */
    .tutorial-queue-btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    .tutorial-stats-panel {
        width: 100%;
        justify-content: center;
    }

    .tutorial-timer-circle {
        width: 100px;
        height: 100px;
    }

    .tutorial-timer-value {
        font-size: 2rem;
    }

    .tutorial-match-title {
        font-size: 1.5rem;
    }

    .tutorial-accept-actions {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
    }

    .tutorial-action-btn {
        width: 100%;
    }

    .tutorial-match-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tutorial-team-members {
        flex-direction: column;
    }

    .tutorial-team-member {
        min-width: auto;
    }

    .tutorial-lobby-section {
        flex-direction: column;
    }

    .tutorial-teams-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .tutorial-controls {
        flex-direction: column;
        align-items: center;
    }

    .tutorial-control-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* ============ Medium Mobile (700px) ============ */
@media (max-width: 700px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .divisions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ Small Mobile (600px) ============ */
@media (max-width: 600px) {
    .step-item {
        width: calc(50% - 10px);
    }

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

    .footer-brand {
        padding-right: 0;
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .report-mockup-container {
        flex-direction: column;
    }

    .report-arrow {
        transform: rotate(90deg);
    }
}

/* ============ Extra Small Mobile (480px) ============ */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Header - 480px */
    .header {
        height: 56px;
        padding: 0 12px;
    }

    .logo {
        height: 36px;
    }

    .auth-button {
        padding: 8px 10px;
    }

    .auth-button.info-btn {
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Hero section - 480px */
    .hero-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 0 16px;
    }

    .hero-logo {
        height: 60px;
        margin-bottom: 12px;
    }

    .hero-badge {
        font-size: 9px;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .hero-accent-line {
        margin-bottom: 12px;
        width: 50px;
    }

    .hero-subtitle {
        font-size: 1.75rem;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .hero-title-wrapper {
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 0.85rem;
        padding-left: 12px;
        margin-bottom: 20px;
    }

    .hero-cta .cta-button {
        padding: 12px 20px;
        font-size: 12px;
    }

    .stats-snippet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-stats-snippet {
        max-width: 100%;
    }

    /* Tutorial / Interactive Demo - Extra compact */
    .tutorial-content {
        min-height: 380px;
    }

    .tutorial-player-card {
        max-width: 180px;
        min-height: 180px;
    }

    .tutorial-avatar-placeholder {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .tutorial-player-name {
        font-size: 0.85rem;
    }

    .tutorial-teams-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .tutorial-team-cell {
        padding: 6px 2px;
        font-size: 0.6rem;
    }
}

/* ============ Tiny Screens (360px) ============ */
@media (max-width: 360px) {
    .header {
        padding: 0 10px;
        height: 52px;
    }

    .logo {
        height: 32px;
    }

    .auth-button {
        padding: 6px 8px;
    }

    .auth-button.info-btn {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Hero section - 360px */
    .hero-section {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-logo {
        height: 50px;
        margin-bottom: 10px;
    }

    .hero-badge {
        font-size: 8px;
        padding: 5px 10px;
        margin-bottom: 10px;
    }

    .hero-accent-line {
        width: 40px;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .hero-title-wrapper {
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 0.8rem;
        padding-left: 10px;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .hero-cta {
        gap: 8px;
    }

    .hero-cta .cta-button {
        padding: 10px 16px;
        font-size: 11px;
    }

    .stats-section {
        gap: 16px;
        padding: 30px 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* Tutorial - Minimal */
    .queue-tutorial-container {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .tutorial-badge {
        display: none;
    }

    .phase-num {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .phase-label {
        display: none;
    }

    .tutorial-queue-btn {
        height: 80px;
        padding: 10px 15px;
    }

    .tutorial-btn-text {
        font-size: 0.85rem;
    }

    .tutorial-stats-panel {
        padding: 8px 12px;
        gap: 12px;
    }

    .tutorial-stat-value {
        font-size: 1.1rem;
    }

    .tutorial-timer-circle {
        width: 80px;
        height: 80px;
    }

    .tutorial-timer-value {
        font-size: 1.5rem;
    }

    .tutorial-match-title {
        font-size: 1.2rem;
    }

    .tutorial-match-subtitle {
        font-size: 0.85rem;
    }

    .tutorial-accept-progress {
        max-width: 100%;
    }

    .tutorial-code {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .tutorial-teams-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

