/* GEARLY — GEAR RATIO TOOL
   This file styles only gear-ratio.html.
   Do not replace your main style.css. */

.ratio-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 45px 0 70px;
}

.ratio-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #61708a;
    text-decoration: none;
    font-size: 14px;
}

.ratio-back:hover {
    color: #111827;
}

.ratio-title {
    margin-bottom: 28px;
}

.ratio-title .label {
    display: inline-block;
    margin-bottom: 15px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff0eb;
    color: #ff4b23;
    font-size: 12px;
    font-weight: 700;
}

.ratio-title h1 {
    margin: 0 0 10px;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -2px;
}

.ratio-title p {
    max-width: 620px;
    margin: 0;
    color: #61708a;
    font-size: 15px;
    line-height: 1.6;
}

.ratio-box,
.ratios-card {
    padding: 28px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ratio-box h2,
.ratios-card h2 {
    margin: 0 0 7px;
    font-size: 21px;
}

.description,
.ratios-card > p {
    margin: 0 0 25px;
    color: #61708a;
    font-size: 13px;
    line-height: 1.5;
}

.ratio-field {
    margin-bottom: 18px;
}

.ratio-field label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.ratio-field input,
.ratio-field select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #dfe3e8;
    border-radius: 11px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    outline: none;
}

.ratio-field input:focus,
.ratio-field select:focus {
    border-color: #ff4b23;
    box-shadow: 0 0 0 3px #fff0eb;
}

.ratio-field select:disabled {
    background: #f6f7f9;
    color: #8a94a5;
}

.ratio-button {
    width: 100%;
    height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    background: #ff4b23;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.ratio-button:hover {
    background: #e63e19;
}

.ratio-result {
    display: none;
    margin-top: 24px;
    padding: 24px;
    border-radius: 14px;
    background: #f6f7f9;
    text-align: center;
}

.ratio-result.show {
    display: block;
}

.result-label {
    display: block;
    margin-bottom: 8px;
    color: #61708a;
    font-size: 13px;
}

.result-number {
    display: block;
    color: #111827;
    font-size: 36px;
    font-weight: 800;
}

.result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.result-details div {
    padding: 13px;
    border: 1px solid #dfe3e8;
    border-radius: 11px;
    background: #fff;
}

.result-details span {
    display: block;
    margin-bottom: 5px;
    color: #61708a;
    font-size: 11px;
}

.result-details strong {
    font-size: 15px;
}

.result-text {
    margin: 14px 0 0;
    color: #61708a;
    font-size: 12px;
}

.ratio-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ratio-item {
    padding: 15px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
}

.ratio-item .gear-name {
    display: block;
    margin-bottom: 5px;
    color: #61708a;
    font-size: 12px;
}

.ratio-item strong {
    font-size: 18px;
}

.empty-ratios {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 12px;
    background: #f6f7f9;
    color: #61708a;
    font-size: 13px;
}

.data-note {
    display: flex;
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 11px;
    background: #fff8f5;
    color: #61708a;
    font-size: 11px;
    line-height: 1.5;
}

.data-note strong {
    color: #ff4b23;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .ratio-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .ratio-page {
        padding: 30px 0 50px;
    }

    .ratio-title h1 {
        font-size: 42px;
    }

    .ratio-box,
    .ratios-card {
        padding: 20px;
    }

    .result-details {
        grid-template-columns: 1fr;
    }
}
