/**
 * Ranking Calculator Styles
 * Color Scheme: #FCB902 (Yellow), #35DD93 (Green), White
 */

/* Reset and Base Styles */
.ranking-calc-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ranking-calc-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* Calculator Section */
.ranking-calculator {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 40px;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #FCB902;
}

.ranking-calc-title {
    color: #35DD93;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Input Groups */
.ranking-input-group {
    margin-bottom: 25px;
}

.ranking-input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #35DD93;
    font-size: 1.1em;
}

.ranking-input-group input,
.ranking-input-group select {
    width: 100%;
    padding: 15px;
    border: 3px solid #FCB902;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #ffffff;
}

.ranking-input-group input:focus,
.ranking-input-group select:focus {
    outline: none;
    border-color: #35DD93;
    box-shadow: 0 0 0 4px rgba(53, 221, 147, 0.2);
    transform: translateY(-2px);
}

.ranking-help-text {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* Button */
.ranking-btn {
    background: linear-gradient(135deg, #35DD93 0%, #2bc57a 100%);
    color: #ffffff;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(53, 221, 147, 0.3);
    position: relative;
    overflow: hidden;
}

.ranking-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ranking-btn:hover::before {
    width: 300px;
    height: 300px;
}

.ranking-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 221, 147, 0.4);
}

.ranking-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(53, 221, 147, 0.3);
}

/* Result Section */
.ranking-result {
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
    border: 3px solid #35DD93;
    border-radius: 20px;
    padding: 35px;
    margin-top: 30px;
    display: none;
    box-shadow: 0 10px 30px rgba(53, 221, 147, 0.2);
}

.ranking-result.show {
    display: block;
    animation: slideInResult 0.5s ease;
}

@keyframes slideInResult {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ranking-result-title {
    color: #35DD93;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

/* Score Display */
.ranking-score-display {
    background: linear-gradient(135deg, #FCB902 0%, #e6a800 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(252, 185, 2, 0.3);
    position: relative;
    overflow: hidden;
}

.ranking-score-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.ranking-score-label {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.ranking-score {
    font-size: 3.5em;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.ranking-score-range {
    margin-top: 12px;
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
}

/* Result Items */
.ranking-result-item {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 12px;
    border-left: 5px solid #FCB902;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ranking-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ranking-result-label {
    font-weight: 700;
    color: #35DD93;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.ranking-result-value {
    font-size: 1.4em;
    color: #333;
    font-weight: 600;
}

.ranking-interpretation {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
}

/* Info Box */
.ranking-info-box {
    background: linear-gradient(135deg, #fffaeb 0%, #fff8dc 100%);
    border-left: 5px solid #FCB902;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(252, 185, 2, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ranking-calculator {
        padding: 25px;
    }

    .ranking-calc-title {
        font-size: 1.6em;
    }

    .ranking-result {
        padding: 25px;
    }

    .ranking-result-title {
        font-size: 1.5em;
    }

    .ranking-score {
        font-size: 2.8em;
    }

    .ranking-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .ranking-calculator {
        padding: 20px;
        margin: 15px 0;
    }

    .ranking-calc-title {
        font-size: 1.4em;
    }

    .ranking-score {
        font-size: 2.2em;
    }

    .ranking-result-value {
        font-size: 1.2em;
    }
}

/* Smooth Transitions */
* {
    transition-property: transform, box-shadow, background, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.ranking-loading {
    animation: pulse 1.5s infinite;
}
