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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    overflow: hidden;
}

/* 유튜브 영상 컨테이너 개선 */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="road" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23f0f8ff;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23e6f3ff;stop-opacity:0.2"/></linearGradient></defs><path d="M0,400 Q300,200 600,400 T1200,400 L1200,800 L0,800 Z" fill="url(%23road)"/></svg>');
    background-size: cover;
    background-position: center;
}

/* video-container 스타일은 위에서 정의됨 */

/* 데스크톱에서 영상이 화면을 완전히 채우도록 */
@media (min-width: 769px) {
    .video-container .background-video {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.video-container .background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    border: none;
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
    /* 화면 비율에 맞춰 영상 크기 조정 */
    width: 100vw;
    height: 56.25vw; /* 16:9 비율 */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 비율 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.2);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.3);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.8;
    background: rgba(0,0,0,0.4);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.cta-button {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), 0 0 20px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
}

.arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Gacha Section */
.gacha {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.gacha-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3c72;
}

.gacha-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(30, 60, 114, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.benefit-info {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    border-left: 4px solid #ff6b35;
}

.benefit-info h3 {
    color: #e65100;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.benefit-info p {
    color: #bf360c;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.input-group {
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.input-group input:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff6b35;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.gacha-button {
    width: 100%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.gacha-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
}

.gacha-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Gacha Animation */
.gacha-animation {
    text-align: center;
    margin: 40px 0;
}

.slot-machine {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.slot-reel {
    background: white;
    border-radius: 10px;
    padding: 15px;
    overflow: hidden;
    height: 80px;
    position: relative;
}

.slot-item {
    font-size: 3rem;
    text-align: center;
    line-height: 80px;
    animation: spin 0.1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-80px); }
}

/* Gacha Result */
.gacha-result {
    text-align: center;
    margin-top: 40px;
}

.result-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(30, 60, 114, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e3c72;
}

.result-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button, .retry-button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button {
    background: #fee500;
    color: #3c1e1e;
}

.share-button:hover {
    background: #fdd835;
    transform: translateY(-2px);
}

.retry-button {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

/* Brand Value Section */
.brand-value {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ff6b35;
}

.value-description {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .gacha-title {
        font-size: 2rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .value-cards {
        grid-template-columns: 1fr;
    }
    
    .gacha-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefit-info {
        padding: 15px;
        margin: 20px 0;
    }
    
    .benefit-info h3 {
        font-size: 1.1rem;
    }
    
    .benefit-info p {
        font-size: 0.9rem;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .share-button, .retry-button {
        width: 100%;
        max-width: 200px;
    }
    
    /* 모바일에서 유튜브 영상 최적화 */
    .video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    
    .video-container .background-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        transform: translate(-50%, -50%);
        object-fit: cover;
        border: none;
        z-index: 1;
        pointer-events: none;
    }
    
    /* 모바일에서 영상이 화면을 완전히 채우도록 */
    @media (max-width: 768px) and (orientation: portrait) {
        .video-container .background-video {
            width: 100vw;
            height: 100vh;
            min-width: 100vw;
            min-height: 100vh;
            transform: translate(-50%, -50%) scale(1.8);
        }
    }
    
    @media (max-width: 768px) and (orientation: landscape) {
        .video-container .background-video {
            width: 100vw;
            height: 100vh;
            min-width: 100vw;
            min-height: 100vh;
            transform: translate(-50%, -50%) scale(1.5);
        }
    }
    
    /* 모바일에서 텍스트 가독성 향상 */
    .hero-title {
        font-size: 2.5rem;
        padding: 15px 20px;
        background: rgba(0,0,0,0.5);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 12px 18px;
        background: rgba(0,0,0,0.5);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        padding: 12px 16px;
        background: rgba(0,0,0,0.6);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 10px 15px;
        background: rgba(0,0,0,0.6);
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .gacha-form {
        padding: 25px 15px;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    /* 초소형 화면에서 유튜브 영상 최적화 */
    .video-container .background-video {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        transform: translate(-50%, -50%) scale(2.0);
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-top: 1px solid rgba(30, 60, 114, 0.1);
}

.map-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.map-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 2.5rem;
}

.map-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(30, 60, 114, 0.15);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(30, 60, 114, 0.1);
}

.map-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

.map-info {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(30, 60, 114, 0.1);
}

.map-address h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-address p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.map-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    color: white;
    text-decoration: none;
}

/* Company Info Section */
.company-info {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
    border-top: 1px solid rgba(30, 60, 114, 0.1);
}

.company-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.company-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.company-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.08);
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
}

.company-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.15);
}

.company-item .label {
    font-weight: 600;
    color: #1e3c72;
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.company-item .value {
    color: #333;
    font-size: 0.85rem;
    line-height: 1.4;
}

.admin-link {
    margin-top: 30px;
    text-align: center;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

    .admin-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
        color: white;
        text-decoration: none;
    }
}

/* Map Section Responsive */
@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    
    .map-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .map-iframe {
        height: 300px;
    }
    
    .map-info {
        padding: 20px;
    }
    
    .map-actions {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .map-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .map-title {
        font-size: 1.5rem;
    }
    
    .map-iframe {
        height: 250px;
    }
    
    .map-info {
        padding: 15px;
    }
    
    .map-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .map-button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }

/* Responsive Design for Company Info */
@media (max-width: 768px) {
    .company-info {
        padding: 40px 0;
    }
    
    .company-title {
        font-size: 1.3rem;
    }
    
    .company-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .company-item {
        padding: 12px;
    }
    
    .company-item .label {
        font-size: 0.75rem;
    }
    
    .company-item .value {
        font-size: 0.8rem;
    }
}