/* MM to Inches Calculator Specific Styles */

.conversion-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ccc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.result-card.primary {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: var(--primary-color);
    color: white;
}

.btn-action svg {
    stroke-width: 2;
}

/* Formula Cards */
.formula-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
}

.formula-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.formula {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.2rem;
    overflow-x: auto;
}

.formula-explanation {
    color: #555;
    line-height: 1.6;
}

/* Examples Section */
.example-card {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.example-card:hover {
    border-color: var(--accent-color);
}

.example-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.example-solution p {
    margin: 1rem 0;
    color: #333;
}

.example-solution strong {
    color: var(--primary-color);
    font-weight: 600;
}

.example-answer {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    border: 1px solid #ccc;
}

/* FAQs Section */
.faq-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-item h3::before {
    content: "Q: ";
    color: var(--accent-color);
    font-weight: 700;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Expert Section */
.expert-section {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 4px;
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.expert-badge svg {
    stroke-width: 3;
}

.expert-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.expert-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.expert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.expert-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.expert-bio {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.expert-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.expert-linkedin:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .conversion-tabs {
        flex-direction: column;
    }
    
    .result-cards {
        grid-template-columns: 1fr;
    }
    
    .expert-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .expert-image {
        margin: 0 auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .formula {
        font-size: 1rem;
        padding: 1rem;
    }
}
