/* WoW Classic Leveling Calculator Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-section, .results-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
}

/* Style dropdown options */
select option {
    background: #2d2d2d;
    color: #ffffff;
    padding: 8px;
}

select option:hover {
    background: #ffd700;
    color: #000000;
}

input:focus, select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.btn {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.result-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #ffd700;
}

.result-label {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

.result-value {
    color: #ffffff;
    font-size: 1.1em;
}

.zone-recommendations {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.zone-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.zone-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

.zone-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.zone-name {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

.zone-level {
    color: #cccccc;
    font-size: 0.9em;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ffd700, #ffb347);
    transition: width 0.3s ease;
}

/* RestedXP affiliate integration */
.rxp-hero {
    margin-bottom: 28px;
    text-align: center;
}

.rxp-hero-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.25s ease;
}

.rxp-hero-link:hover {
    transform: translateY(-2px);
}

.rxp-hero-link:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 3px;
}

.rxp-hero-link img {
    width: 100%;
    max-width: 728px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.rxp-code-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 15px;
    color: #cccccc;
}

.rxp-code-strip code {
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffd700;
}

.rxp-copy-btn {
    padding: 8px 14px;
    background: linear-gradient(45deg, #ffd700, #ffb347);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.rxp-copy-btn:hover {
    transform: scale(1.03);
}

.rxp-copy-btn:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.rxp-affiliate-note {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 0;
}

.rxp-shop-link {
    color: #ffd700;
    font-weight: 600;
}

.rxp-shop-link:hover {
    color: #ffd700;
}

.calculator-main {
    min-width: 0;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}

@media (min-width: 900px) {
    .calculator-layout {
        grid-template-columns: minmax(0, 1fr) 160px;
    }

    .rxp-aside {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 20px;
    }
}

.rxp-aside {
    display: none;
    justify-self: center;
}

@media (min-width: 900px) {
    .rxp-aside {
        display: block;
    }
}

.rxp-aside-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease;
}

.rxp-aside-link:hover {
    transform: scale(1.02);
}

.rxp-aside-link img {
    width: 100%;
    height: auto;
    display: block;
}

.rxp-footer-promo {
    margin-top: 28px;
    text-align: center;
}

.rxp-footer-link {
    display: inline-block;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.25s ease;
}

.rxp-footer-link:hover {
    transform: scale(1.03);
}

.rxp-footer-link img {
    width: 100%;
    height: auto;
    display: block;
}

.rxp-inline-cta {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #cccccc;
    text-align: center;
}

.rxp-inline-cta a {
    color: #ffd700;
    font-weight: 600;
}

.rxp-inline-cta a:hover {
    color: #ffd700;
}

.rxp-medium-promo {
    margin-top: 24px;
    text-align: center;
}

.rxp-medium-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.25s ease;
}

.rxp-medium-link:hover {
    transform: translateY(-2px);
}

.rxp-medium-link:focus-visible {
    outline: 2px solid #ffd700;
    outline-offset: 3px;
}

.rxp-medium-link img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
}