/* ===========================
   메인 페이지 전용 CSS - main.css
=========================== */

.main-body {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    min-height: 100vh;
}

/* Header 투명 스타일 */
.main-body .main-header {
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-stats {
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
}

/* ===== 역할 선택 메인 ===== */
.role-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* 히어로 타이틀 */
.role-hero {
    text-align: center;
    color: var(--white);
    margin-bottom: 48px;
}

.role-hero-icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.role-hero-icon i {
    font-size: 2.5rem;
    color: #60a5fa;
}

.role-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.role-hero p {
    font-size: 1.05rem;
    opacity: 0.7;
}

/* ===== 역할 카드 ===== */
.role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.role-card {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-lg);
    padding: 32px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.role-admin::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.role-customer::before { background: linear-gradient(90deg, #2563eb, #0891b2); }
.role-driver::before { background: linear-gradient(90deg, #16a34a, #0d9488); }

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.5);
}

.role-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.role-admin .role-card-icon { background: #ede9fe; color: #7c3aed; }
.role-customer .role-card-icon { background: var(--primary-light); color: var(--primary); }
.role-driver .role-card-icon { background: var(--success-light); color: var(--success); }

.role-card-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.role-card-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.8;
}

.role-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

.role-access-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
}

.role-arrow {
    color: var(--gray-300);
    font-size: 1rem;
    transition: all 0.2s;
}

.role-card:hover .role-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* ===== 통계 바 ===== */
.main-stats-bar {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.main-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    color: rgba(255,255,255,0.9);
}

.main-stat > i {
    font-size: 1.2rem;
    opacity: 0.7;
}

.ms-num {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.ms-active { color: #67e8f9; }
.ms-done { color: #86efac; }

.ms-label {
    font-size: 0.78rem;
    opacity: 0.65;
    font-weight: 500;
}

.main-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* ===== 룸 패널 ===== */
.rooms-panel {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 28px;
    animation: fadeInUp 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

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

.rooms-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rooms-panel-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 룸 카드 (메인 전용 미니 스타일) */
.rooms-panel .room-card {
    background: var(--white);
    border-color: var(--gray-200);
}

.rooms-panel .room-card::before {
    background: var(--primary);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .role-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .role-card {
        padding: 24px 20px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .role-card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .role-card-body h2 { font-size: 1.1rem; }
    .role-card-body p { font-size: 0.82rem; }

    .role-card-footer {
        display: none;
    }

    .role-hero h1 { font-size: 1.5rem; }
    .role-hero-icon { width: 70px; height: 70px; }
    .role-hero-icon i { font-size: 2rem; }

    .main-stats-bar {
        padding: 16px;
        gap: 0;
    }

    .main-stat {
        padding: 6px 12px;
    }

    .ms-num { font-size: 1.3rem; }

    .role-main {
        padding: 24px 16px 40px;
    }
}

@media (max-width: 480px) {
    .main-stats-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .main-stat-divider {
        display: none;
    }

    /* 모바일에서 헤더 버튼 텍스트 숨기고 아이콘만 표시 */
    .btn-text {
        display: none;
    }
}
