/* Bra Size Calculator - WordPress Plugin Styles */
/* Compatible with Hostinger's Astra, OceanWP, GeneratePress themes */

.bsc-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
}

/* Header */
.bsc-header { margin-bottom: 1.5rem; }
.bsc-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.4rem;
}
.bsc-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Unit Toggle */
.bsc-unit-toggle {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 1.5rem;
    gap: 4px;
}
.bsc-unit-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}
.bsc-unit-btn.active {
    background: #fff;
    color: #c0387e;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.bsc-unit-btn:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* Measurement Guide */
.bsc-guide {
    background: #fef6fb;
    border: 1px solid #f0d0e8;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bsc-guide-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.bsc-guide-icon {
    background: #c0387e;
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.bsc-guide-item strong { font-size: 0.9rem; color: #333; display: block; margin-bottom: 2px; }
.bsc-guide-item p { font-size: 0.85rem; color: #666; margin: 0; }

/* Form */
.bsc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
    .bsc-form { grid-template-columns: 1fr; }
}
.bsc-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.bsc-unit-label {
    font-weight: 400;
    color: #888;
    font-size: 0.82rem;
}
.bsc-input-wrap {
    position: relative;
}
.bsc-input-wrap input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.bsc-input-wrap input:focus {
    outline: none;
    border-color: #c0387e;
    box-shadow: 0 0 0 3px rgba(192,56,126,0.12);
}
.bsc-input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.85rem;
    pointer-events: none;
}

/* Calculate Button */
.bsc-btn-calculate {
    width: 100%;
    padding: 13px;
    background: #c0387e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 1.5rem;
}
.bsc-btn-calculate:hover { background: #a02e6a; }
.bsc-btn-calculate:active { transform: scale(0.99); }

/* Error */
.bsc-error {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Results */
.bsc-results {
    border: 1.5px solid #e8d0f0;
    border-radius: 12px;
    overflow: hidden;
}
.bsc-result-header {
    background: #c0387e;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.bsc-primary-result {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    background: #fef0f8;
    border-bottom: 1px solid #f0d0e8;
}
.bsc-primary-label {
    font-size: 0.82rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.bsc-primary-size {
    font-size: 3.5rem;
    font-weight: 800;
    color: #c0387e;
    line-height: 1;
    margin-bottom: 6px;
}
.bsc-primary-sub {
    font-size: 0.85rem;
    color: #888;
}

/* Size Grid */
.bsc-size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #f0d0e8;
}
@media (max-width: 520px) {
    .bsc-size-grid { grid-template-columns: repeat(2, 1fr); }
}
.bsc-size-card {
    padding: 1rem 0.5rem;
    text-align: center;
    border-right: 1px solid #f0d0e8;
}
.bsc-size-card:last-child { border-right: none; }
.bsc-size-region { font-size: 0.78rem; color: #888; margin-bottom: 4px; }
.bsc-size-value { font-size: 1.4rem; font-weight: 700; color: #333; }

/* Breakdown */
.bsc-breakdown {
    display: flex;
    border-bottom: 1px solid #f0d0e8;
    background: #fafafa;
}
.bsc-breakdown-item {
    flex: 1;
    padding: 0.85rem;
    text-align: center;
    border-right: 1px solid #f0d0e8;
}
.bsc-breakdown-item:last-child { border-right: none; }
.bsc-breakdown-label { font-size: 0.78rem; color: #888; display: block; margin-bottom: 2px; }
.bsc-breakdown-value { font-size: 1rem; font-weight: 700; color: #333; }

/* Sister Sizes */
.bsc-sister {
    padding: 1.25rem;
    border-bottom: 1px solid #f0d0e8;
}
.bsc-sister-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; color: #333; }
.bsc-sister-desc { font-size: 0.82rem; color: #888; margin: 0 0 0.75rem; }
.bsc-sister-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.bsc-sister-card {
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    border: 1.5px solid #ddd;
}
.bsc-sister-label { font-size: 0.75rem; color: #888; margin-bottom: 4px; }
.bsc-sister-size { font-size: 1.25rem; font-weight: 700; margin-bottom: 2px; }
.bsc-sister-note { font-size: 0.72rem; }
.bsc-sister-you { border-color: #c0387e; background: #fef0f8; }
.bsc-sister-you .bsc-sister-size { color: #c0387e; }
.bsc-sister-you .bsc-sister-note { color: #c0387e; }
.bsc-sister-smaller { background: #f5f5f5; }
.bsc-sister-smaller .bsc-sister-size { color: #555; }
.bsc-sister-larger { background: #f5f5f5; }
.bsc-sister-larger .bsc-sister-size { color: #555; }

/* Tips */
.bsc-tips { padding: 1.25rem; border-bottom: 1px solid #f0d0e8; }
.bsc-tips-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; color: #333; }
.bsc-tips-list { list-style: none; padding: 0; margin: 0; }
.bsc-tips-list li {
    font-size: 0.87rem;
    color: #555;
    padding: 3px 0;
    padding-left: 4px;
}

/* Disclaimer */
.bsc-disclaimer {
    padding: 0.85rem 1.25rem;
    background: #fafafa;
    font-size: 0.82rem;
    color: #999;
    text-align: center;
}
