/**
 * 제주원렌트카 - 전환율 최적화 상단 배너
 * PC & Mobile Responsive
 */

/* ========================================
   1. 긴급 전화 상단 바 (PC & Mobile 공통)
   ======================================== */
.urgent-top-bar {
    background: linear-gradient(135deg, #e96920 0%, #ff8833 100%);
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(233, 105, 32, 0.25);
    position: relative;
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.urgent-top-bar .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.urgent-message {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.urgent-message i {
    font-size: 16px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

.urgent-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgent-phone-number {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.urgent-call-btn {
    background: #ffffff;
    color: #e96920;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border: 2px solid #ffffff;
}

.urgent-call-btn:hover {
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.urgent-call-btn i {
    font-size: 16px;
    animation: bounce 1s ease-in-out infinite;
}

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

/* ========================================
   2. 프로모션 배너 (PC & Mobile 공통)
   ======================================== */
.promo-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c4a6e 100%);
    color: #ffffff;
    padding: 12px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.promo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.promo-badge {
    background: #e96920;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(233,105,32,0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.promo-text {
    font-size: 15px;
    font-weight: 600;
}

.promo-text strong {
    color: #ffd700;
    font-weight: 900;
    font-size: 17px;
}

.promo-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.promo-feature i {
    color: #ffd700;
    font-size: 14px;
}

/* ========================================
   3. 고정 플로팅 전화 버튼 (모바일 최적화)
   ======================================== */
.floating-call-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: floatUp 0.6s ease-out;
}

@keyframes floatUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating-call-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e96920 0%, #ff8833 100%);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(233, 105, 32, 0.4);
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.floating-call-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(233, 105, 32, 0.6);
}

.floating-call-icon {
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #e96920;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: phoneRing 2s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
}

.floating-call-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.floating-call-label {
    font-size: 12px;
    opacity: 0.95;
    font-weight: 500;
}

.floating-call-number {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* ========================================
   4. 반응형 디자인 (Mobile Optimization)
   ======================================== */

/* 태블릿 (768px ~ 1024px) */
@media screen and (max-width: 1024px) {
    .urgent-top-bar {
        padding: 12px 0;
    }
    
    .urgent-phone-number {
        font-size: 18px;
    }
    
    .promo-text {
        font-size: 14px;
    }
    
    .promo-text strong {
        font-size: 16px;
    }
}

/* 모바일 (~ 767px) */
@media screen and (max-width: 767px) {
    .urgent-top-bar {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .urgent-top-bar .container-fluid {
        padding: 0 15px;
        gap: 10px;
    }
    
    .urgent-message {
        font-size: 12px;
        gap: 5px;
    }
    
    .urgent-message i {
        font-size: 14px;
    }
    
    .urgent-phone {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .urgent-phone-number {
        font-size: 22px;
        font-weight: 900;
    }
    
    .urgent-call-btn {
        padding: 10px 24px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
        border-radius: 8px;
    }
    
    .promo-banner {
        padding: 10px 0;
    }
    
    .promo-content {
        gap: 10px;
        padding: 0 15px;
    }
    
    .promo-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .promo-text {
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
    
    .promo-text strong {
        font-size: 15px;
    }
    
    .promo-features {
        width: 100%;
        gap: 10px;
    }
    
    .promo-feature {
        font-size: 12px;
    }
    
    /* 플로팅 버튼 모바일 최적화 */
    .floating-call-button {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .floating-call-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .floating-call-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .floating-call-number {
        font-size: 17px;
    }
}

/* 작은 모바일 (~ 480px) */
@media screen and (max-width: 480px) {
    .urgent-phone-number {
        font-size: 20px;
    }
    
    .urgent-call-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .promo-text {
        font-size: 12px;
    }
    
    .promo-text strong {
        font-size: 14px;
    }
    
    .promo-feature {
        font-size: 11px;
    }
    
    .floating-call-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .floating-call-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .floating-call-number {
        font-size: 16px;
    }
    
    .floating-call-label {
        font-size: 11px;
    }
}

/* ========================================
   5. 인쇄 시 숨김
   ======================================== */
@media print {
    .urgent-top-bar,
    .promo-banner,
    .floating-call-button {
        display: none !important;
    }
}

/* ========================================
   6. 접근성 개선
   ======================================== */
.urgent-call-btn:focus,
.floating-call-btn:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* 스크린 리더를 위한 숨김 텍스트 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
