/* ============================================
   DOPP PAGE - Split Screen Café Theme
   ============================================ */

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

body {
    font-family: 'Inter', sans-serif;
    background: #fafaf9;
    color: #292524;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Main Wrapper - Contains split-screen and footer */
.main-wrapper {
    position: relative;
    width: 100%;
}

/* Split Screen Container */
.split-screen-container {
    display: flex;
    width: 100%;
    margin-top: 80px;
    position: relative;
    gap: 0;
    min-height: calc(100vh - 80px);
}

/* LEFT PANEL - Sticky Coin Side */
.left-panel {
    position: fixed;
    left: 0;
    top: 80px;
    width: 45%;
    height: calc(100vh - 80px);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 25%, #fbbf24 50%, #f59e0b 75%, #d97706 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

/* Fade out coin and stats when hidden, but keep canvas animation */
.left-panel.hidden .coin-container,
.left-panel.hidden .floating-stats {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.left-panel .coin-container,
.left-panel .floating-stats {
    opacity: 1;
    transition: opacity 0.6s ease;
}

/* Warm ambient overlay */
.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(217, 119, 6, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(251, 146, 60, 0.25) 0%, transparent 50%);
    animation: warmGlow 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes warmGlow {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* RIGHT PANEL - Scrolling Content */
.right-panel {
    margin-left: 45%;
    width: 55%;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

/* Coffee Steam Canvas */
#coffee-steam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* DOPP Coin Container - Centered in left panel */
.coin-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    margin-bottom: 40px;
}

.coin-3d {
    width: 400px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: gentleSpin 6s ease-in-out infinite;
}

/* Gentle spin animation - different from WAZA's flip */
@keyframes gentleSpin {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(-5deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.coin-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    filter: none;
    border-radius: 50%;
}

.coin-front {
    transform: rotateY(0deg) translateZ(0.1px);
}

.coin-back {
    transform: rotateY(180deg) translateZ(0.1px);
}

/* Placeholder Coin Design */
.placeholder-coin {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 60px rgba(217, 119, 6, 0.4),
        inset 0 -5px 20px rgba(120, 53, 15, 0.3),
        inset 0 5px 20px rgba(254, 243, 199, 0.5);
    border: 8px solid rgba(254, 243, 199, 0.8);
    position: relative;
    overflow: hidden;
}

/* Metallic shine effect */
.placeholder-coin::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.placeholder-icon {
    font-size: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(120, 53, 15, 0.3));
}

.placeholder-text {
    font-size: 48px;
    font-weight: 900;
    color: #78350f;
    text-shadow: 0 2px 4px rgba(254, 243, 199, 0.8);
    letter-spacing: 4px;
}

.placeholder-subtext {
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Floating Stats - Unique to DOPP */
.floating-stats {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

.stat-bubble:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-bubble:nth-child(3) {
    animation-delay: 1s;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 900;
    color: #d97706;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #78350f;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Panels - Scrolling on Right */
.content-panel {
    min-height: 100vh;
    padding: 100px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.panel-content {
    max-width: 650px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.panel-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.panel-content h1 {
    font-size: 56px;
    font-weight: 900;
    color: #78350f;
    margin-bottom: 16px;
    line-height: 1.1;
}

.panel-content h2 {
    font-size: 44px;
    font-weight: 800;
    color: #78350f;
    margin-bottom: 24px;
    line-height: 1.2;
}

.panel-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 8px;
}

.panel-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #57534e;
    margin-bottom: 20px;
}

.lead {
    font-size: 22px !important;
    font-weight: 600;
    color: #92400e !important;
}

p.panel-intro {
    font-size: 20px !important;
    color: #78716c !important;
    background: transparent !important;
}

.panel-image {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.2);
    max-width: 100%;
}

.panel-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Earn Grid - Card Layout */
.earn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.earn-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 200px;
}

.earn-card:hover {
    transform: translateY(-8px);
    border-color: #f59e0b;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.3);
}

.earn-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
    line-height: 1;
}

.earn-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 8px;
}

.earn-card p {
    font-size: 14px;
    color: #78716c;
    margin: 0;
}

/* Spend Showcase - Horizontal Cards */
.spend-showcase {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.showcase-item {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px;
    background: #fafaf9;
    padding: 28px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.showcase-item:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.3);
}

.showcase-visual {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-details {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-emoji {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.showcase-details h3 {
    font-size: 22px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 8px;
}

.showcase-details p {
    font-size: 16px;
    color: #78716c;
    margin: 0;
}

/* Timeline - Future Vision Panel */
.timeline {
    margin-top: 40px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding-top: 8px;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 16px;
    color: #78716c;
    margin: 0;
}

/* CTA Panel */
.panel-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-align: center;
}

.panel-cta h2 {
    color: white !important;
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-text {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 40px;
}

.btn-xl {
    padding: 20px 56px;
    font-size: 20px;
    font-weight: 700;
    background: white;
    color: #d97706;
    transition: all 0.3s ease;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-xl:hover {
    background: #fef3c7;
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.cta-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-feature {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Panel Backgrounds */
.content-panel.panel-intro {
    background: #ffffff;
}

.panel-earn {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.panel-spend {
    background: #ffffff;
}

.panel-future {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Footer - Full width below both panels */
.footer {
    position: relative;
    z-index: 30;
    width: 100%;
    margin-left: 0;
    clear: both;
}

/* Responsive */
@media (max-width: 1200px) {
    .left-panel {
        width: 40%;
    }
    
    .right-panel {
        margin-left: 40%;
        width: 60%;
    }
    
    .content-panel {
        padding: 80px 40px;
    }
    
    .panel-content {
        max-width: 100%;
    }
}

@media (max-width: 968px) {
    /* Stack layout on mobile */
    .split-screen-container {
        flex-direction: column;
        margin-top: 70px;
    }
    
    .left-panel {
        position: relative;
        width: 100%;
        height: 100vh;
        top: 0;
    }
    
    .right-panel {
        margin-left: 0;
        width: 100%;
    }
    
    .coin-3d {
        width: 280px;
        height: 280px;
    }
    
    .placeholder-icon {
        font-size: 80px;
    }
    
    .placeholder-text {
        font-size: 36px;
    }
    
    .floating-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .content-panel {
        padding: 60px 32px;
        min-height: 80vh;
    }
    
    .panel-content h1 {
        font-size: 40px;
    }
    
    .panel-content h2 {
        font-size: 32px;
    }
    
    .earn-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-item {
        flex-direction: column;
    }
    
    .showcase-visual {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .split-screen-container {
        margin-top: 60px;
    }
    
    .placeholder-icon {
        font-size: 60px;
    }
    
    .placeholder-text {
        font-size: 28px;
    }
    
    .content-panel {
        padding: 40px 24px;
        min-height: auto;
    }
    
    .panel-content h1 {
        font-size: 32px;
    }
    
    .panel-content h2 {
        font-size: 28px;
    }
    
    .btn-xl {
        padding: 16px 40px;
        font-size: 16px;
    }
}
