/* assets/css/calculators/exponent-calculator.css */

/* Widget Container */
.exp-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Calculator Form */
.calculator-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* Exponent Layout Grid */
.exponent-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
    padding: 20px 0;
}

/* Base Input */
.base-wrapper {
    display: flex;
    flex-direction: column;
    width: 140px;
}

.base-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center;
}

.base-input {
    width: 100%;
    padding: 15px;
    font-size: 2rem;
    /* Big Base */
    text-align: center;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    transition: all 0.2s;
    background: #f8fafc;
}

.base-input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Exponent Input (Superscript) */
.exponent-wrapper {
    display: flex;
    flex-direction: column;
    width: 90px;
    margin-top: -10px;
    /* Lift it up */
}

.exponent-wrapper label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
    text-align: center;
}

.exponent-input {
    width: 100%;
    padding: 8px;
    font-size: 1.2rem;
    /* Smaller Exponent */
    text-align: center;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s;
    background: #f8fafc;
}

.exponent-input:focus {
    border-color: var(--primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Button */
.calc-action-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.calc-action-btn:hover {
    transform: translateY(-2px);
}

/* --- RESULT SECTION --- */
.result-container {
    margin-top: 2rem;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

/* Hero Result */
.hero-card {
    background: #10b981;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-label {
    opacity: 0.9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hero-value {
    font-size: 2.5rem;
    font-weight: 800;
    word-break: break-all;
    line-height: 1.2;
}

/* Scientific Notation Tag */
.sci-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
    font-weight: 600;
}

/* Steps Box */
.steps-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.steps-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.step-item {
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    color: #334155;
    word-break: break-word;
    font-size: 1.1rem;
}

/* SEO Content */
.info-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.info-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.info-section ul {
    padding-left: 20px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.info-section li {
    margin-bottom: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}