/* ===== CALCULATOR TEMPLATE STYLES ===== */
.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.calculator-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--gray);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.calculator-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calculator-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.calculator-title-area h1 {
    font-size: 2.25rem;
    margin: 0;
}

.calculator-description {
    color: var(--dark-gray);
    font-size: 1.125rem;
    max-width: 800px;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 3rem 0;
}

.calculator-main {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.calculator-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-unit {
    position: relative;
}

.input-with-unit input {
    padding-right: 70px;
}

.unit-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: var(--gray);
    font-size: 0.875rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input {
    width: auto;
}

.calculator-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.calc-submit {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.calc-submit:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.calc-reset {
    background-color: var(--light-gray);
    color: var(--text);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.calc-reset:hover {
    background-color: var(--gray);
    color: white;
}

.results-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid var(--primary);
    display: none;
}

.results-section.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.results-header h3 {
    margin: 0;
    color: var(--primary);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: calc(var(--radius) - 2px);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.result-label {
    font-weight: 500;
    color: var(--text);
}

.result-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.result-note {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ===== SIDEBAR ===== */
.calculator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Ad Sidebar */
.ad-sidebar {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-sidebar .ad-label {
    margin-bottom: 1rem;
}

.ad-sidebar-placeholder {
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

/* Hits & Tips Section */
.hits-tips-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.hits-tips-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hits-tips-section h3 i {
    font-size: 1.25rem;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tip-icon {
    color: var(--accent);
    font-size: 1.25rem;
    min-width: 24px;
}

.tip-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.tip-content p {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin: 0;
}

/* Related Calculators */
.related-calculators {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.related-calculators h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 0.75rem;
}

.related-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--light-gray);
    color: var(--text);
    transition: var(--transition);
}

.related-list a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateX(5px);
}

.related-list i {
    font-size: 1.25rem;
}

/* ===== SEO CONTENT ===== */
.seo-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.seo-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.seo-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.seo-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content ul,
.seo-content ol {
    margin: 1rem 0 1rem 2rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

.faq-section {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* ===== CALCULATOR META ===== */
.calculator-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .ad-sidebar {
        min-height: 250px;
    }
    
    .ad-sidebar-placeholder {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .calculator-title-area {
        flex-direction: column;
        text-align: center;
    }
    
    .calculator-buttons {
        flex-direction: column;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}