@import '../theme/variables.css';
@import '../base/reset.css';
@import '../base/typography.css';
@import '../base/layout.css';
@import '../base/components.css';

/* =================================
   Ranking Page Styles
   ================================= */

/* Main Container */
.ranking-top-page {
    min-height: 100vh;
    background-color: var(--color-background-light);
    padding: 40px 0;
}

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

/* Page Header */
.ranking-top-page h1 {
    font-size: 36px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.6;
}

/* Choice Container */
.ranking-choice {
    margin-bottom: 80px;
}

.choice-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.choice-item {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--color-shadow-light);
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.choice-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--color-shadow-dark);
}

.choice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.choice-item h2 {
    font-size: 28px;
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.choice-item > p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    font-size: 16px;
}

.choice-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.choice-item ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--color-gray-light);
    line-height: 1.6;
    font-size: 15px;
}

.choice-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 18px;
}

/* Ranking Button */
.btn-ranking {
    display: block;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 18px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--color-primary-shadow);
}

.btn-ranking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-primary-shadow-dark);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-secondary-dark) 100%);
    color: white;
    text-decoration: none;
}

/* Guide Links Section */
.guide-links {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--color-shadow-light);
    border: 1px solid var(--color-border-light);
    text-align: center;
}

.guide-links h3 {
    font-size: 24px;
    color: var(--color-text);
    margin-bottom: 30px;
    font-weight: bold;
}

.guide-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.guide-buttons a {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 12px var(--color-accent-shadow);
}

.guide-buttons a:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-accent-shadow-dark);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .choice-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ranking-top-page h1 {
        font-size: 28px;
    }
    
    .choice-item {
        padding: 30px;
    }
    
    .choice-item h2 {
        font-size: 24px;
    }
    
    .guide-links {
        padding: 30px;
    }
    
    .guide-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .guide-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .ranking-top-page {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .ranking-top-page h1 {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .choice-item {
        padding: 25px;
    }
    
    .choice-item h2 {
        font-size: 22px;
    }
    
    .choice-item > p {
        font-size: 15px;
    }
    
    .choice-item ul li {
        font-size: 14px;
    }
    
    .btn-ranking {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .guide-links {
        padding: 25px;
    }
    
    .guide-links h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .guide-buttons a {
        padding: 14px 24px;
        font-size: 15px;
    }
}