/* 대회 전용 스타일 */

/* Contest Stats Right Alignment */
.contest-stats-right {
    justify-content: flex-end !important;
    margin-left: auto;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-right: 2rem;
}

.contest-stats-right .stat-item {
    min-width: 120px;
    flex-shrink: 0;
    max-width: 180px;
}

/* Smaller stat numbers and labels */
.contest-stats-right .stat-number {
    font-size: 2.5rem !important;
    font-weight: 700;
}

.contest-stats-right .stat-label {
    font-size: 0.9rem !important;
    font-weight: 500;
}

/* Desktop specific adjustments */
@media (min-width: 1200px) {
    .contest-stats-right {
        max-width: 1000px;
        gap: 2rem;
    }
    
    .contest-stats-right .stat-item {
        min-width: 160px;
    }
}

/* Contest Portfolio Grid */
.contest-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contest-portfolio-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contest-portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4);
}

.contest-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #ffd700;
}

.portfolio-icon {
    margin-bottom: 1.5rem;
}

.icon-emoji {
    font-size: 3rem;
    display: block;
}

.portfolio-content {
    text-align: center;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.portfolio-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.portfolio-value.profit {
    color: #28a745;
}

.portfolio-value.loss {
    color: #dc3545;
}

/* Contest Subtitle */
.contest-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
}

.ranking-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Contest Status Alert Styling */
.contest-status-alert {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    margin: 1rem 0 0.2rem 0;
}

.contest-status-alert .alert-heading {
    color: white !important;
    font-weight: 600;
}

.contest-status-alert p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

/* Contest Rankings Styling */
.ranking-list {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.ranking-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rank-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.rank-badge:hover {
    transform: scale(1.1);
}

.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #daa520) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.username {
    flex: 1;
    margin: 0 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.assets {
    font-weight: 700;
    color: #4ade80;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contest Hero Section Overrides */
.hero-section.start .stat-number.text-success {
    color: #4ade80 !important;
}

.hero-section.start .stat-number.text-danger {
    color: #f87171 !important;
}

/* Contest Action Buttons */
.content-button {
    display: inline-block;
    background-color: #1c3f73;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #1c3f73;
    text-align: center;
}

.content-button:hover {
    background-color: #0f2a4f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 63, 115, 0.3);
}

.content-button.btn-outline-primary {
    background-color: transparent;
    color: #1c3f73;
    border-color: #1c3f73;
}

.content-button.btn-outline-primary:hover {
    background-color: #1c3f73;
    color: white;
}

.content-button.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.content-button.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

.content-button.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.content-button.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Contest Leave Button */
.btn-outline-danger {
    background-color: transparent;
    color: #dc3545;
    border-color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Contest Feature Cards Enhancement */
.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 0 0.2rem 0.2rem rgba(11, 34, 66, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 21rem;
    max-width: 21rem;
    height: 16.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Contest Section Backgrounds */
.tab-system-section {
    background-color: #f8f9fa;
    padding: 2rem 0 2rem 0;
}

.verification-section {
    background-color: #ffffff;
    padding: 0rem 0 4rem 0;
}

/* Contest Text Spacing Improvements */
.hero-section .small_words {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
}

.hero-section .small_words h4 {
    margin-bottom: 0.3rem !important;
    margin-top: 0.3rem !important;
}

.contest-badge-container {
    margin: 1rem 0 0.5rem 0;
}

.hero-cta-buttons {
    margin-top: 0.5rem !important;
}

.hero-stats-bar {
    margin-top: 1rem !important;
}

/* Desktop specific positioning */
@media (min-width: 769px) {
    .hero-section .small_words {
        margin-bottom: 0.3rem !important;
    }
    
    .hero-cta-buttons {
        margin-top: 0.25rem !important;
        margin-bottom: 0.02rem !important;
    }
    
    .hero-stats-bar {
        margin-top: 0.02rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-action-buttons {
        margin-top: 0.5rem !important;
    }
    
    /* 데스크톱에서 통계 바 위치 조정 */
    .contest-stats-right {
        justify-content: flex-end !important;
        margin-left: auto;
        max-width: 600px;
        width: 100%;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding-right: 2rem;
        margin-right: 0;
    }
    
    .contest-stats-right .stat-item {
        min-width: 100px;
        flex-shrink: 0;
        max-width: 120px;
    }
    
    /* Center the content vertically on desktop */
    .hero-section.start {
        display: flex;
        align-items: center;
        min-height: 100vh;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80vh;
    }
    
    .hero-actions-container {
        justify-content: space-between;
        max-width: 800px;
        margin: 0 auto;
    }
    
}

/* Compact Dashboard Styles */
.compact-dashboard {
    background: #f8f9fa;
    padding: 2rem 0;
}

.dashboard-actions {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    text-align: center;
}

.action-btn.primary {
    background: #1c3f73;
    color: white;
    border-color: #1c3f73;
}

.action-btn.primary:hover {
    background: #0f2a4f;
    color: white;
    transform: translateY(-2px);
}

.action-btn.outline {
    background: transparent;
    color: #1c3f73;
    border-color: #1c3f73;
}

.action-btn.outline:hover {
    background: #1c3f73;
    color: white;
}

.action-btn.info {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.action-btn.info:hover {
    background: #138496;
    color: white;
}

.action-btn.success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.action-btn.success:hover {
    background: #218838;
    color: white;
}

.top-rankings {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.ranking-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.ranking-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.ranking-item-compact:hover {
    background: #f8f9fa;
}

.rank-badge-compact {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
}

.rank-badge-compact.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-badge-compact.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
    color: #000;
}

.rank-badge-compact.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #000;
}

.username-compact {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.assets-compact {
    font-weight: 700;
    color: #28a745;
    font-size: 0.9rem;
}

/* Hero Action Buttons */
.hero-action-buttons {
    margin-top: 1rem !important;
    position: relative;
    z-index: 50 !important;
}

.hero-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.hero-action-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
    color: white;
    flex: 1;
    max-width: 220px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-action-btn.primary {
    background: linear-gradient(45deg, #4da6ff, #1c3f73);
    border-color: #4da6ff;
}

.hero-action-btn.primary:hover {
    background: linear-gradient(45deg, #1c3f73, #0f2a4f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 166, 255, 0.3);
}

.hero-action-btn.outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-action-btn.outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.hero-action-btn.info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border-color: #17a2b8;
}

.hero-action-btn.info:hover {
    background: linear-gradient(45deg, #138496, #0f6674);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.3);
}

.hero-action-btn.success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: #28a745;
}

.hero-action-btn.success:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.hero-action-btn.danger {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    border-color: #dc3545;
}

.hero-action-btn.danger:hover {
    background: linear-gradient(45deg, #c82333, #c0392b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

.hero-leave-form {
    display: inline-block;
    margin: 0;
}

/* Contest Join Page Layout */
.hero-content-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
}

.hero-content-left {
    flex: 1;
    max-width: 60%;
    padding-left: 0;
    margin-left: 0;
}

.hero-content-right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
}

/* Contest Rules Section */
.contest-rules-section {
    margin-top: 2rem;
}

.rules-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rule-icon {
    font-size: 1.3rem;
    min-width: 2.5rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rule-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

/* Join Button */
.hero-join-btn {
    background: linear-gradient(45deg, #4da6ff, #1c3f73);
    border: 3px solid #4da6ff;
    color: white;
    padding: 2rem 2rem;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(77, 166, 255, 0.4);
    width: 300px;
    height: 300px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.hero-join-btn:hover {
    background: linear-gradient(45deg, #1c3f73, #0f2a4f);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(77, 166, 255, 0.5);
    color: white;
}

.hero-join-form {
    display: inline-block;
    margin: 0;
}

/* Contest Join Responsive Design */
@media (max-width: 768px) {
    .hero-content-layout {
        flex-direction: column;
        gap: 2rem;
        margin-top: 1rem;
    }
    
    .hero-content-left {
        max-width: 100%;
    }
    
    .hero-content-right {
        align-self: center;
        padding-top: 0;
    }
    
    .contest-rules-section {
        margin-top: 1.5rem;
    }
    
    .rules-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .rule-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .rule-icon {
    font-size: 1.1rem;
        min-width: 2rem;
    }
    
    .rule-text {
        font-size: 0.9rem;
    }
    
    .hero-join-btn {
        width: 100%;
        height: auto;
        padding: 1rem 2rem;
        font-size: 1rem;
    border-radius: 0.5rem;
        min-width: 200px;
    }
}

/* Hero Ranking Section */
.hero-ranking-section {
    margin-top: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.ranking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ranking-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.ranking-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ranking-tab {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.ranking-tab.active {
    background: linear-gradient(45deg, #4da6ff, #1c3f73);
    border-color: #4da6ff;
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.3);
}

.ranking-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ranking-tab.active:hover::before {
    left: 100%;
}

/* Ranking Pagination */
.ranking-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.hero-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.5rem;
}

.hero-ranking-list::-webkit-scrollbar {
    width: 6px;
}

.hero-ranking-list::-webkit-scrollbar-track {
    background: transparent;
}

.hero-ranking-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.hero-ranking-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.hero-ranking-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-ranking-item.current-user {
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.3) 0%, rgba(250, 177, 160, 0.3) 100%);
    border-color: rgba(225, 112, 85, 0.5);
    border-left: 4px solid #e17055;
}

.hero-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-rank-badge .hero-rank-number {
    color: white;
    font-size: 1rem;
}

.hero-user-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
}

.hero-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
}

.hero-user-icon {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-user-details {
    flex: 1;
}

.hero-username {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
}

.hero-school {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.hero-assets-info {
    text-align: right;
    min-width: 100px;
}

.hero-total-assets {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
}

.hero-profit-loss {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.hero-profit-loss.positive {
    color: #00b894;
}

.hero-profit-loss.negative {
    color: #e17055;
}

/* School Ranking Styles */
.hero-ranking-item.school-ranking {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.1) 0%, rgba(28, 63, 115, 0.1) 100%);
    border-color: rgba(77, 166, 255, 0.3);
}

.hero-ranking-item.school-ranking:hover {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.2) 0%, rgba(28, 63, 115, 0.2) 100%);
    border-color: rgba(77, 166, 255, 0.5);
}

.hero-school-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4da6ff, #1c3f73);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.3);
}

/* No Team Data */
.no-team-data {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-data-icon {
    font-size: 4rem;
        margin-bottom: 1rem;
    opacity: 0.7;
}

.no-team-data h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.no-team-data p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* Hero Ranking Responsive Design */
@media (max-width: 768px) {
    .hero-ranking-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .ranking-title {
        font-size: 1.5rem;
    }
    
    .ranking-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-ranking-list {
        gap: 0.5rem;
        padding-right: 0.25rem;
    }
    
    .hero-ranking-item {
        padding: 0.75rem 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-rank-badge {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
        margin-bottom: 0;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .hero-user-info {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
    }
    
    .hero-user-avatar {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .hero-user-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem !important;
    }
    
    .hero-user-details {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        min-width: 0;
        width: 100%;
        align-items: flex-start;
    }
    
    .hero-username {
        font-size: 0.9rem;
        line-height: 1.1;
        margin: 0;
    }
    
    /* 팀랭킹에서 학교명 글씨 크기 조정 */
    .hero-ranking-item.school-ranking .hero-username {
        font-size: 0.85rem;
    }
    
    .hero-school {
        font-size: 0.75rem;
        line-height: 1.1;
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
        width: 100%;
        text-align: left;
        margin-top: 0.25rem;
    }
    
    .hero-assets-info {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .hero-total-assets {
        font-size: 1rem;
    }
    
    .hero-profit-loss {
        font-size: 0.85rem;
    }
    
    /* Mobile Tab Styles */
    .ranking-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ranking-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .no-team-data {
        padding: 2rem 1rem;
    }
    
    .no-data-icon {
        font-size: 3rem;
    }
    
    .no-team-data h4 {
        font-size: 1.3rem;
    }
    
    .no-team-data p {
        font-size: 0.9rem;
    }
    
    /* Mobile School Ranking Styles */
    .hero-school-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    /* Mobile Pagination Styles */
    .ranking-pagination {
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* Contest Dashboard Desktop Header Adjustments */
@media (min-width: 769px) {
    .hero-section.start {
        display: flex;
        align-items: flex-start;
        min-height: auto;
        height: auto;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        height: auto;
    }
}

/* Contest pages - let base.css handle navbar completely */

/* Dropdown Styles - contest action buttons only */
.hero-action-buttons .dropdown {
    position: relative;
    display: inline-block;
    flex: 1;
    max-width: 220px;
}

.hero-action-buttons .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.1em;
    content: "▼";
    font-size: 0.7rem;
}

.hero-action-buttons .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    list-style: none;
}

.hero-action-buttons .dropdown-menu.show {
    display: block;
}

.hero-action-buttons .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    clear: both;
    font-weight: 500;
    color: #333;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.3s ease;
}

.hero-action-buttons .dropdown-item:hover {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #1c3f73;
    transform: translateX(5px);
}

.hero-action-buttons .dropdown-item:focus {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #1c3f73;
    outline: none;
}


/* Contest Responsive Design */
@media (max-width: 768px) {
    .contest-status-alert {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .username {
        margin: 0;
        order: 2;
    }
    
    .assets {
        order: 3;
    }
    
    .rank-badge {
        order: 1;
        margin-bottom: 0.25rem;
    }
    
    .content-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .contest-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .contest-portfolio-card {
        padding: 1.5rem;
    }
    
    .portfolio-value {
        font-size: 1.5rem;
    }
    
    .contest-stats-right {
        justify-content: center !important;
        margin-left: 0;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .contest-stats-right .stat-item {
        min-width: 100px;
        flex: 1;
        max-width: 150px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .compact-dashboard {
        padding: 1rem 0;
    }
    
    .dashboard-actions,
    .top-rankings {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* 모바일에서 헤더 섹션 높이 조정 - padding 제거 */
    .hero-section.start {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .hero-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0;
        display: block;
        overflow: visible !important;
    }
    
    /* 모바일에서 버튼 컨테이너 조정 - 2x2 그리드 */
    .hero-actions-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1rem !important;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-action-btn {
        width: 100%;
        min-width: auto;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 0;
        text-align: center;
    }
    
    .hero-action-buttons .dropdown {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-action-buttons .dropdown-menu {
        width: 100%;
        min-width: 100%;
    }
    
    /* 모바일에서 텍스트 간격 조정 */
    .hero-section .start_words {
        margin-top: 3rem !important;
        padding-top: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .start_words h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-section .small_words {
        margin-bottom: 0.5rem !important;
    }
    
    .hero-cta-buttons {
        margin-top: 0.5rem !important;
    }
    
    .hero-stats-bar {
        margin-top: 0.5rem !important;
    }
    
    .hero-action-buttons {
        margin-top: 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .contest-stats-right .stat-number {
        font-size: 2rem !important;
    }
    
    .contest-stats-right .stat-label {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .contest-status-alert {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .ranking-list {
        padding: 0.5rem;
    }
    
    .content-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 매우 작은 화면에서 추가 조정 - padding 제거 */
    .hero-section.start {
        overflow: visible !important;
    }
    
    .hero-section .container {
        padding: 0;
        overflow: visible !important;
    }
    
    .hero-section .start_words {
        margin-top: 2rem !important;
        padding-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-actions-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .hero-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-section .start_words h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-section .small_words h4 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    /* 모바일에서 네비게이션 바 높이 고려 - 제거하여 base.css가 처리하도록 */
}
