@charset "UTF-8";

/* ============================================
   RedotPay Promo Banner Styles (Coinglass Style)
   ============================================ */

/* Top Banner (Header Below - Full Width) */
.rp-top-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 50%, #1a0a2e 100%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.4);
    padding: 12px 16px 24px;
    position: relative;
    width: 100%;
    max-width: 1400px;      /* 콘텐츠 영역과 동일한 최대 너비 */
    margin: 92px auto 0;    /* 상단 92px + 좌우 중앙 정렬 */
    border-radius: 12px;    /* 모서리 둥글게 */
    z-index: 100;      /* 헤더(101)보다 낮게 설정 */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* Adjust main content when banner is visible - not needed for relative position */
.main02.has-top-banner {
    /* padding-top 불필요 (position: relative이므로) */
}

@media (max-width: 768px) {
    .rp-top-banner {
        padding: 10px 12px 28px;
    }
}

.rp-top-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    animation: rp-banner-shimmer 3s infinite;
}

@keyframes rp-banner-shimmer {
    100% { left: 100%; }
}

.rp-top-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* Banner Image */
.rp-banner-image {
    flex-shrink: 0;
    width: 220px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rp-banner-img-float 3s ease-in-out infinite;
}

.rp-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.3));
}

@keyframes rp-banner-img-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Banner Text Area */
.rp-top-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rp-top-banner-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.rp-top-banner-brand-logo {
    background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.rp-top-banner-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.rp-top-banner-title .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rp-top-banner-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* GO Button */
.rp-top-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 14px;
    font-weight: 800;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    flex-shrink: 0;
}

.rp-top-banner-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.6);
    color: #fff;
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .rp-banner-image {
        width: 150px;
        height: 84px;
    }

    .rp-top-banner-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .rp-top-banner-brand {
        font-size: 13px;
    }

    .rp-top-banner-subtitle {
        font-size: 13px;
    }

    .rp-top-banner-btn {
        width: 36px;
        height: 36px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .rp-top-banner-inner {
        gap: 10px;
    }

    .rp-banner-image {
        width: 110px;
        height: 64px;
    }

    .rp-top-banner-title {
        font-size: 14px;
    }

    .rp-top-banner-subtitle {
        display: none;
    }
}

/* Chat Banner (Horizontal Layout - Same as Main Banner) */
.rp-chat-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 50%, #1a0a2e 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.rp-chat-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
    animation: rp-chat-shimmer 3s infinite;
}

@keyframes rp-chat-shimmer {
    100% { left: 100%; }
}

.rp-chat-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

/* Chat Banner Image */
.rp-chat-banner .rp-banner-image {
    flex-shrink: 0;
    width: 110px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rp-banner-img-float 3s ease-in-out infinite;
}

.rp-chat-banner .rp-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.3));
}

/* Chat Banner Content */
.rp-chat-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.rp-chat-banner-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.rp-chat-banner-brand-logo {
    background: linear-gradient(135deg, #ec4899 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.rp-chat-banner-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    white-space: nowrap;
}

.rp-chat-banner-title .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chat Banner GO Button */
.rp-chat-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    flex-shrink: 0;
}

.rp-chat-banner-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.6);
    color: #fff;
}

/* Light Mode Support */
body.light-mode .rp-top-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B8DD6 100%);
    border-bottom-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

body.light-mode .rp-top-banner-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.light-mode .rp-top-banner-title .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .rp-top-banner-brand {
    color: rgba(255, 255, 255, 0.9);
}

body.light-mode .rp-top-banner-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .rp-chat-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B8DD6 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

body.light-mode .rp-chat-banner-title {
    color: #ffffff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

body.light-mode .rp-chat-banner-title .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .rp-chat-banner-brand {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .rp-top-banner {
        padding: 10px 40px 28px 16px;
        max-width: calc(100% - 24px);  /* 모바일에서 좌우 여백 */
        margin: 68px auto 0;           /* 모바일 헤더 높이 + 중앙 정렬 */
        border-radius: 8px;            /* 모바일용 작은 radius */
    }

    .rp-top-banner-inner {
        gap: 12px;
    }

    .rp-top-banner-text {
        font-size: 13px;
    }

    .rp-top-banner-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .rp-chat-banner {
        padding: 8px 10px;
        margin-bottom: 12px;
    }

    .rp-chat-banner-inner {
        gap: 8px;
    }

    .rp-chat-banner .rp-banner-image {
        width: 80px;
        height: 46px;
    }

    .rp-chat-banner-title {
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .rp-chat-banner-brand {
        font-size: 12px;
    }

    .rp-chat-banner-btn {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .rp-top-banner-inner {
        flex-direction: column;
        gap: 8px;
    }

    .rp-top-banner-text {
        font-size: 12px;
    }
}
