/* Gustabe Paint Calculator - Captain CI Theme */
/* Version: 2.4.0 - Captain Brand Colors */

/* ========== CAPTAIN CI COLORS ========== */
:root {
    --captain-orange: #fcc400;
    --captain-gold: #fcc700;
    --captain-dark: #032e5f;
    --captain-blue: #2980b9;
    --captain-light: #fdf6e9;
    --captain-success: #27ae60;
    --captain-gray: #7f8c8d;
    --captain-border: #e0e0e0;
}

/* ========== BASE ========== */
.gpc-calculator {
    font-family:
        "Prompt",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--captain-border);
}

.gpc-calculator * {
    box-sizing: border-box;
}

/* ========== HEADER ========== */
.gpc-header {
    background: linear-gradient(
        135deg,
        var(--captain-orange) 0%,
        var(--captain-gold) 100%
    );
    padding: 24px 20px;
    text-align: center;
    color: #fff;
}

.gpc-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.gpc-header-icon svg {
    color: #fff;
}

.gpc-header-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.gpc-header-subtitle {
    font-size: 0.85em;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

/* ========== FORM ========== */
.gpc-form {
    padding: 20px;
    background: #fafafa;
}

.gpc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.gpc-input-group {
    display: flex;
    flex-direction: column;
}

.gpc-input-group label {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--captain-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gpc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gpc-input-wrapper input {
    width: 100%;
    padding: 11px 45px 11px 12px;
    border: 1.5px solid var(--captain-border);
    border-radius: 8px;
    font-size: 1em;
    color: var(--captain-dark);
    transition: all 0.2s;
    background: #fff;
    -moz-appearance: textfield;
}

.gpc-input-wrapper input::-webkit-outer-spin-button,
.gpc-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gpc-input-wrapper input:focus {
    outline: none;
    border-color: var(--captain-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.gpc-input-wrapper input::placeholder {
    color: #b0b0b0;
}

.gpc-input-unit {
    position: absolute;
    right: 12px;
    font-size: 0.8em;
    color: var(--captain-gray);
    pointer-events: none;
    font-weight: 500;
}

.gpc-select-wrapper {
    position: relative;
}

.gpc-select-wrapper select {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--captain-border);
    border-radius: 8px;
    font-size: 1em;
    color: var(--captain-dark);
    background: #fff;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s;
}

.gpc-select-wrapper select:focus {
    outline: none;
    border-color: var(--captain-orange);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.gpc-select-wrapper::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--captain-gray);
    pointer-events: none;
}

/* ========== BUTTONS ========== */
.gpc-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gpc-btn-primary {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: linear-gradient(
        135deg,
        var(--captain-orange) 0%,
        var(--captain-gold) 100%
    );
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.gpc-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.gpc-btn-primary:disabled {
    background: #d5d5d5;
    cursor: not-allowed;
    box-shadow: none;
}

.gpc-btn-primary svg {
    flex-shrink: 0;
}

.gpc-btn-secondary {
    flex: 1;
    padding: 13px 14px;
    background: #fff;
    color: var(--captain-gray);
    border: 1.5px solid var(--captain-border);
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.gpc-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: var(--captain-dark);
}

/* ========== RESULT ========== */
.gpc-result {
    padding: 0 20px 20px;
    background: #fff;
    animation: slideUp 0.3s ease;
}

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

/* ========== SUMMARY CARD ========== */
.gpc-summary-card {
    background: linear-gradient(135deg, var(--captain-dark) 0%, #34495e 100%);
    border-radius: 10px;
    padding: 18px;
    color: #fff;
    margin-bottom: 14px;
}

.gpc-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.gpc-summary-icon {
    width: 28px;
    height: 28px;
    background: var(--captain-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpc-summary-icon svg {
    width: 16px;
    height: 16px;
}

.gpc-summary-title {
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.9;
}

.gpc-summary-body {
    text-align: center;
}

.gpc-summary-main {
    margin-bottom: 6px;
}

.gpc-summary-label {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
    margin-bottom: 2px;
}

.gpc-summary-value {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
    color: var(--captain-gold);
}

.gpc-summary-unit {
    font-size: 1em;
    font-weight: 500;
    opacity: 0.9;
    margin-left: 4px;
}

.gpc-summary-sub {
    font-size: 0.85em;
    opacity: 0.8;
}

.gpc-summary-sub strong {
    font-weight: 600;
    color: var(--captain-gold);
}

/* ========== BREAKDOWN ========== */
.gpc-breakdown {
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--captain-border);
}

.gpc-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f0f0f0;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--captain-dark);
    cursor: pointer;
}

.gpc-toggle-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--captain-gray);
    transition: transform 0.3s;
}

.gpc-toggle-btn.active {
    transform: rotate(180deg);
}

.gpc-breakdown-content {
    padding: 14px;
    display: block;
    background: #fff;
}

.gpc-breakdown-content.hidden {
    display: none;
}

/* ========== TIMELINE ========== */
.gpc-timeline {
    position: relative;
}

.gpc-timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}

.gpc-timeline-item:last-child {
    padding-bottom: 0;
}

.gpc-timeline-item::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.gpc-timeline-item:last-child::before {
    display: none;
}

.gpc-timeline-dot {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--captain-orange);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.gpc-timeline-final .gpc-timeline-dot {
    background: var(--captain-success);
    border-color: var(--captain-success);
}

.gpc-timeline-content {
    flex: 1;
    min-width: 0;
}

.gpc-timeline-title {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--captain-dark);
    margin-bottom: 3px;
}

.gpc-timeline-desc {
    font-size: 0.85em;
    color: var(--captain-gray);
    line-height: 1.5;
}

.gpc-timeline-desc strong {
    color: var(--captain-dark);
    font-weight: 600;
}

.gpc-timeline-final .gpc-timeline-title {
    color: var(--captain-success);
}

.gpc-timeline-final .gpc-timeline-desc strong {
    color: var(--captain-success);
    font-size: 1.05em;
}

/* ========== TIPS ========== */
.gpc-tips {
    background: var(--captain-light);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.8em;
    color: #8b6914;
    line-height: 1.5;
    border-left: 3px solid var(--captain-gold);
}

.gpc-tips p {
    margin: 0 0 6px 0;
}

.gpc-tips p:last-child {
    margin-bottom: 0;
}

.gpc-tips strong {
    font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .gpc-calculator {
        border-radius: 0;
        border: none;
    }

    .gpc-input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gpc-summary-value {
        font-size: 2.4em;
    }

    .gpc-header {
        padding: 20px 16px;
    }

    .gpc-form,
    .gpc-result {
        padding: 16px;
    }
}
