/* ===== PAGES CSS - 추가 페이지 스타일 ===== */

/* 페이지 헤더 */
.page-header {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--purple-300) 0%, var(--purple-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* 필터 섹션 */
.filter-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px 0;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
    border-color: var(--purple-500);
    color: white;
}

/* 검색 섹션 */
.search-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px 20px;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--purple-500);
    background: rgba(168, 85, 247, 0.15);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple-400);
}

/* 게임 섹션 */
.games-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.game-card {
    background: linear-gradient(145deg, var(--dark-purple-700) 0%, var(--dark-purple-800) 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-500);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.game-thumbnail {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.3) 100%);
    transition: var(--transition);
}

.game-card:hover .game-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(147, 51, 234, 0.4) 100%);
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 10, 31, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play-now {
    padding: 10px 30px;
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--accent-magenta) 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-play-now:hover {
    transform: scale(1.05);
}

.btn-demo {
    padding: 8px 25px;
    background: transparent;
    border: 1px solid var(--purple-400);
    border-radius: 20px;
    color: var(--purple-400);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-demo:hover {
    background: var(--purple-500);
    color: white;
}

.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.game-badge.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: white;
}

.game-badge.new {
    background: linear-gradient(135deg, #4ecdc4 0%, #44bd92 100%);
    color: white;
}

.game-info {
    padding: 12px;
    text-align: center;
}

.game-info .game-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-info .game-provider {
    font-size: 11px;
    color: var(--purple-400);
}

/* 더보기 버튼 */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    padding: 14px 40px;
    background: transparent;
    border: 2px solid var(--purple-500);
    border-radius: 30px;
    color: var(--purple-400);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: var(--purple-500);
    color: white;
}

/* ===== 라이브 카지노 페이지 ===== */
.casino-card {
    position: relative;
    background: linear-gradient(145deg, var(--dark-purple-700) 0%, var(--dark-purple-800) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: var(--transition);
}

.casino-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-500);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.3);
}

.casino-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.casino-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.casino-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 59, 48, 0.9);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.casino-dealer-count {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    font-size: 11px;
    color: white;
}

.casino-info {
    padding: 16px;
}

.casino-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.casino-provider {
    font-size: 12px;
    color: var(--purple-400);
}

.casino-tables {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.table-badge {
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    font-size: 11px;
    color: var(--purple-300);
}

/* ===== 프로모션 페이지 ===== */
.promo-page-header {
    padding-top: 20px;
    padding-bottom: 15px;
}

.promotion-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

/* 프로모션 필터 */
.promo-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(15, 10, 31, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

.promo-filter .filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-filter .filter-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.promo-filter .filter-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
}

.promo-filter .filter-btn:hover svg {
    opacity: 1;
}

.promo-filter .filter-btn.active {
    background: linear-gradient(135deg, var(--purple-600) 0%, var(--purple-700) 100%);
    border-color: var(--purple-500);
    color: white;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3);
}

.promo-filter .filter-btn.active svg {
    opacity: 1;
}

/* 프로모션 그리드 */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.promo-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 20, 50, 0.9) 0%, rgba(20, 15, 35, 0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 50px rgba(147, 51, 234, 0.25);
}

.promo-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.promo-badge.hot {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.promo-badge.top {
    background: linear-gradient(135deg, #ffa502 0%, #ffcc00 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 165, 2, 0.4);
}

.promo-badge.new {
    background: linear-gradient(135deg, #2ed573 0%, #7bed9f 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.4);
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(15, 10, 31, 0) 0%,
        rgba(15, 10, 31, 0.4) 50%,
        rgba(15, 10, 31, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.promo-overlay .promo-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.promo-overlay .promo-title .highlight {
    display: block;
    color: #ffd93d;
    font-size: 24px;
    margin-top: 4px;
}

.promo-overlay .promo-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.promo-overlay .btn-detail {
    align-self: flex-start;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--accent-magenta) 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.promo-card:hover .btn-detail {
    opacity: 1;
    transform: translateY(0);
}

.promo-overlay .btn-detail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.4);
}

.promo-tags {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.promo-tags .tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.promo-tags .tag.event {
    background: rgba(255, 71, 87, 0.2);
    color: #ff6b81;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.promo-tags .tag.new {
    background: rgba(46, 213, 115, 0.2);
    color: #7bed9f;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.promo-tags .tag.bonus {
    background: rgba(255, 165, 2, 0.2);
    color: #ffd93d;
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.promo-tags .tag.guide {
    background: rgba(116, 185, 255, 0.2);
    color: #74b9ff;
    border: 1px solid rgba(116, 185, 255, 0.3);
}

.promo-info {
    padding: 16px 20px;
    background: rgba(15, 10, 31, 0.5);
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.promo-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-content {
    padding: 20px;
}

.promo-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.promo-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

.promo-date {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-promo-detail {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--purple-500);
    border-radius: 20px;
    color: var(--purple-400);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-promo-detail:hover {
    background: var(--purple-500);
    color: white;
}

/* ===== 로그인/회원가입 모달 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 420px;
    background: linear-gradient(145deg, var(--dark-purple-700) 0%, var(--dark-purple-900) 100%);
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    overflow: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.modal-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.modal-title {
    font-size: 14px;
    color: var(--text-muted);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(168, 85, 247, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--purple-500);
    background: rgba(168, 85, 247, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple-500);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--purple-500) 0%, var(--accent-magenta) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.modal-footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-footer-link {
    color: var(--purple-400);
    text-decoration: none;
    font-weight: 500;
}

.modal-footer-link:hover {
    color: var(--purple-300);
}

/* 탭 전환 */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.modal-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.modal-tab.active {
    color: var(--purple-400);
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--purple-500);
}

/* 반응형 */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .game-info {
        padding: 8px;
    }

    .game-info .game-name {
        font-size: 11px;
    }

    /* 프로모션 페이지 반응형 */
    .promo-page-header {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .promotion-content {
        padding: 0 15px 40px;
    }

    .promo-filter {
        padding: 15px;
        gap: 8px;
        margin-bottom: 25px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .promo-filter::-webkit-scrollbar {
        display: none;
    }

    .promo-filter .filter-btn {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 13px;
    }

    .promo-filter .filter-btn svg {
        width: 16px;
        height: 16px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .promo-card {
        border-radius: 16px;
    }

    .promo-overlay {
        padding: 20px;
    }

    .promo-overlay .promo-title {
        font-size: 18px;
    }

    .promo-overlay .promo-title .highlight {
        font-size: 20px;
    }

    .promo-overlay .btn-detail {
        opacity: 1;
        transform: translateY(0);
    }

    .promo-info {
        padding: 14px 16px;
    }

    .promo-info h4 {
        font-size: 13px;
    }

    .modal-container {
        width: 95%;
        margin: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .promo-filter .filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .promo-badge {
        top: 12px;
        left: 12px;
        padding: 5px 12px;
        font-size: 10px;
    }

    .promo-tags {
        bottom: 12px;
        right: 12px;
    }

    .promo-tags .tag {
        padding: 3px 8px;
        font-size: 9px;
    }
}
