/**
 * Peptide Dose Calculator - Elite Edition
 * Colors: #ef7805 (Orange), #898989 (Gray), #000000 (Black)
 */

:root {
    --brand-orange: #ef7805;
    --brand-gray: #898989;
    --brand-black: #000000;
}

* {
    box-sizing: border-box;
}

.pdc-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.pdc-header {
    background: linear-gradient(135deg, var(--brand-black) 0%, #1a1a1a 100%);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    border-top: 5px solid var(--brand-orange);
}

.pdc-header h1 {
    color: white;
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pdc-header p {
    color: var(--brand-gray);
    font-size: 16px;
    margin: 0;
}

.pdc-badge {
    display: inline-block;
    background: var(--brand-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
    text-transform: uppercase;
}

/* Age Verification */
.pdc-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pdc-verification.hidden {
    display: none;
}

.pdc-modal {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.pdc-modal h2 {
    color: var(--brand-black);
    font-size: 28px;
    margin: 0 0 20px 0;
}

.pdc-modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.pdc-disclaimer {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.pdc-checkbox-wrapper {
    margin: 25px 0;
    text-align: left;
}

.pdc-checkbox-wrapper label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.pdc-checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.pdc-verify-btn {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.pdc-verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pdc-verify-btn:not(:disabled):hover {
    background: #d66704;
    transform: translateY(-2px);
}

/* Main Grid */
.pdc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.pdc-panel {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s;
}

.pdc-panel:hover {
    border-color: var(--brand-orange);
    box-shadow: 0 5px 20px rgba(239, 120, 5, 0.1);
    transform: translateY(-3px);
}

.pdc-panel-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.pdc-panel-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-orange), #ff9933);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
}

.pdc-panel h3 {
    color: var(--brand-black);
    font-size: 20px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.pdc-panel-subtitle {
    color: var(--brand-gray);
    font-size: 14px;
    margin: 0;
}

/* Options */
.pdc-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.pdc-option {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.pdc-option:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.pdc-option.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
}

.pdc-option-value {
    font-size: 16px;
    display: block;
    margin-bottom: 3px;
}

.pdc-option-unit {
    font-size: 11px;
    opacity: 0.8;
}

.pdc-custom {
    border-style: dashed;
    color: var(--brand-gray);
}

/* Custom Input */
.pdc-custom-input-wrapper {
    display: none;
    margin-top: 15px;
}

.pdc-custom-input-wrapper.active {
    display: flex;
    gap: 10px;
}

.pdc-custom-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.pdc-custom-input:focus {
    outline: none;
    border-color: var(--brand-orange);
}

.pdc-apply-btn {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.pdc-apply-btn:hover {
    background: #d66704;
}

/* Results */
.pdc-results {
    background: white;
    border: 3px solid var(--brand-orange);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    display: none;
}

.pdc-results.active {
    display: block;
}

.pdc-results-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.pdc-results h2 {
    color: var(--brand-black);
    font-size: 28px;
    margin: 0;
}

/* Main Result */
.pdc-main-result {
    background: linear-gradient(135deg, var(--brand-orange), #ff9933);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.pdc-result-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pdc-result-value {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.pdc-result-unit {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

/* Secondary Results */
.pdc-secondary-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.pdc-result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
}

.pdc-result-card h4 {
    color: var(--brand-gray);
    font-size: 13px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 600;
}

.pdc-result-card .value {
    color: var(--brand-black);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Syringe */
.pdc-syringe-container {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.pdc-syringe-header {
    text-align: center;
    margin-bottom: 20px;
}

.pdc-syringe-header h3 {
    color: var(--brand-black);
    font-size: 20px;
    margin: 0 0 5px 0;
}

.pdc-syringe-visual {
    position: relative;
    width: 200px;
    height: 500px;
    margin: 0 auto 20px;
}

/* Plunger Top */
.pdc-plunger-top {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: linear-gradient(180deg, #666, #555);
    border-radius: 5px 5px 0 0;
}

/* Plunger Rod */
.pdc-plunger-rod {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 60px;
    background: linear-gradient(90deg, #888, #666, #888);
}

/* Barrel Top */
.pdc-barrel-top {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 15px;
    background: linear-gradient(180deg, #999, #888);
    border-radius: 3px;
}

/* Main Barrel */
.pdc-barrel {
    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 320px;
    background: linear-gradient(90deg, #e8e8e8, #f5f5f5, #e8e8e8);
    border-left: 2px solid #999;
    border-right: 2px solid #999;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

/* Liquid Fill */
.pdc-syringe-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(90deg, 
        rgba(239, 120, 5, 0.3),
        rgba(239, 120, 5, 0.5),
        rgba(239, 120, 5, 0.3)
    );
    transition: height 0.6s ease;
}

/* Scale Marks */
.pdc-scale {
    position: absolute;
    top: 105px;
    right: 10px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pdc-scale-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pdc-scale-line {
    width: 15px;
    height: 2px;
    background: var(--brand-black);
}

.pdc-scale-line.long {
    width: 20px;
    height: 2px;
}

.pdc-scale-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-black);
    min-width: 30px;
}

/* Barrel Bottom */
.pdc-barrel-bottom {
    position: absolute;
    top: 425px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: linear-gradient(180deg, #888, #666);
    border-radius: 0 0 5px 5px;
}

/* Needle Connector */
.pdc-needle-connector {
    position: absolute;
    top: 445px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 15px;
    background: linear-gradient(180deg, #666, #555);
    border-radius: 0 0 3px 3px;
}

/* Needle */
.pdc-needle {
    position: absolute;
    top: 460px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(90deg, #aaa, #ccc, #aaa);
}

.pdc-syringe-text {
    text-align: center;
    color: var(--brand-black);
    font-weight: 600;
    margin-top: 10px;
}

/* Actions */
.pdc-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pdc-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.pdc-btn-primary {
    background: var(--brand-orange);
    color: white;
}

.pdc-btn-primary:hover {
    background: #d66704;
    transform: translateY(-2px);
}

.pdc-btn-secondary {
    background: var(--brand-gray);
    color: white;
}

.pdc-btn-secondary:hover {
    background: #707070;
}

/* Responsive */
@media (max-width: 768px) {
    .pdc-header h1 {
        font-size: 28px;
    }
    
    .pdc-grid {
        grid-template-columns: 1fr;
    }
    
    .pdc-result-value {
        font-size: 48px;
    }
    
    .pdc-actions {
        flex-direction: column;
    }
    
    .pdc-btn {
        min-width: auto;
    }
}