/* Bra Size Calculator Specific Styles */

/* Measurement Guide - Educational Section */
.measurement-guide {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.measurement-guide h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.guide-intro {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.measurement-steps {
    display: grid;
    gap: 2rem;
}

.measurement-step {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), #004080);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
}

.step-header h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* Measurement Diagram */
.step-visual {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.measurement-diagram {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.step-content {
    margin-bottom: 1rem;
}

.step-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.measurement-tips {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
    margin: 0;
    list-style: none;
}

.measurement-tips li {
    color: #444;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.measurement-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.measurement-tips li:last-child {
    margin-bottom: 0;
}

/* Pro Tips Section */
.measurement-pro-tips {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    padding: 2rem;
    border-radius: 4px;
    border: 2px solid #ffc107;
    margin-top: 1rem;
}

.measurement-pro-tips h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tip-card {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    font-size: 0.95rem;
    color: #555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Bra Size Result Display */
.bra-size-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: var(--shadow);
}

.primary-size {
    text-align: center;
    margin-bottom: 2rem;
}

.size-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #004080);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    padding: 1rem 3rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    margin-bottom: 0.5rem;
}

.size-region {
    font-size: 1.2rem;
    color: #666;
    margin: 0.5rem 0 0 0;
}

.size-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 4px;
}

.breakdown-label {
    font-weight: 600;
    color: #555;
}

.breakdown-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.international-sizes {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.international-sizes h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.size-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.size-flag {
    font-size: 1.5rem;
}

.size-label {
    font-size: 0.9rem;
    color: #666;
}

.size-value {
    margin-left: auto;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.fit-tips {
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.fit-tips h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.fit-tips h4:before {
    content: "💡";
    font-size: 1.3rem;
}

.fit-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.fit-tips li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Cup Size Table */
.cup-size-table {
    margin-top: 1rem;
    overflow-x: auto;
}

.cup-size-table table {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cup-size-table th {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem;
    font-weight: 600;
}

.cup-size-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.cup-size-table tr:last-child td {
    border-bottom: none;
}

.cup-size-table tbody tr:nth-child(even) {
    background: var(--bg-color);
}

.cup-size-table tbody tr:hover {
    background: #fff5f8;
}

/* Steps Section */
.steps-section {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.steps-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-item .step-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

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

.step-item p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
}

/* Formulas Section */
.formulas-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.formulas-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.formula-block {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 4px;
    border: 1px solid #ccc;
}

.formula-block h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.formula-block p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.formula-content {
    padding: 1rem;
    background-color: var(--white);
    border-radius: 4px;
    margin: 1rem 0;
}

/* Examples Section */
.examples-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.examples-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.example-box {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 51, 102, 0.1);
}

.example-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.example-box h5:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-box h5:first-child::before {
    content: "💡";
    font-size: 1.3rem;
}

.example-steps {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.example-steps p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.example-steps p:last-child {
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 2px dashed var(--accent-color);
    font-weight: 600;
}

.example-steps strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* FAQs Section */
.faq-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.faq-heading {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.8rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

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

.faq-question {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-question::before {
    content: "Q:";
    color: var(--accent-color);
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    padding-left: 2rem;
}

/* Expert Verification Section */
.expert-section {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.1);
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.expert-heading {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.expert-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.expert-image {
    width: 180px;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

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

.expert-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expert-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.expert-bio {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #0077B5;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.linkedin-link:hover {
    background-color: #005582;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}

/* KaTeX Formula Responsive Styles */
.katex-display {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

.katex {
    font-size: 1em !important;
}

.formula-content .katex-display {
    margin: 1rem 0;
}

.example-steps .katex-display {
    margin: 0.8rem 0;
}

/* Desktop KaTeX sizing for better readability */
@media (min-width: 768px) {
    .formula-content .katex,
    .step-item .katex {
        font-size: 1.2em !important;
    }
    
    .example-box .katex {
        font-size: 1.3em !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .measurement-guide {
        padding: 1.5rem;
    }
    
    .measurement-guide h3 {
        font-size: 1.3rem;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-header h4 {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .step-visual {
        padding: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .measurement-pro-tips {
        padding: 1.5rem;
    }
    
    .size-badge {
        font-size: 2rem;
        padding: 0.75rem 2rem;
    }
    
    .size-breakdown {
        grid-template-columns: 1fr;
    }
    
    .size-grid {
        grid-template-columns: 1fr;
    }
    
    /* KaTeX formulas on mobile */
    .katex {
        font-size: 0.9em !important;
    }
    
    .katex-display {
        font-size: 0.85em;
    }
    
    /* FAQ section responsive */
    .faq-section {
        padding: 2rem;
    }
    
    .faq-heading {
        font-size: 1.6rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }
    
    /* Expert section responsive */
    .expert-section {
        padding: 2rem;
    }
    
    .expert-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expert-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .expert-content {
        text-align: center;
    }
    
    .linkedin-link {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .bra-size-result {
        padding: 1.5rem;
    }
    
    .size-badge {
        font-size: 1.75rem;
        padding: 0.5rem 1.5rem;
    }
    
    .fit-tips {
        padding: 1rem;
    }
    
    .formulas-section,
    .examples-section,
    .faq-section,
    .expert-section {
        padding: 1.5rem;
    }
    
    /* Smaller KaTeX on very small screens */
    .katex {
        font-size: 0.85em !important;
    }
    
    .katex-display {
        font-size: 0.8em;
    }
    
    /* FAQ section mobile */
    .faq-heading {
        font-size: 1.3rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        padding-left: 1rem;
    }
    
    /* Expert section mobile */
    .expert-heading {
        font-size: 1.5rem;
    }
    
    .expert-image {
        width: 120px;
        height: 120px;
    }
    
    .expert-name {
        font-size: 1.2rem;
    }
    
    .expert-designation {
        font-size: 1rem;
    }
    
    .expert-bio {
        font-size: 0.9rem;
    }
}
