/* Project Calculator Styles */

.calculator-page {
    min-height: 100vh;
    padding: 100px 0 4rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.calculator-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Configuration Panel */
.config-panel {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 0;
    padding: 2rem;
}

.config-section {
    margin-bottom: 2rem;
}

.config-section:last-child {
    margin-bottom: 0;
}

.config-label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.config-label span {
    color: var(--white);
    font-weight: 700;
}

.config-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: 0;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.config-slider {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
}

.config-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 0;
    transition: all 0.3s ease;
}

.config-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.5);
}

.config-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 0;
    border: none;
}

.config-section small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: 0;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background-color: rgba(0, 102, 204, 0.1);
    border-color: var(--primary);
}

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

/* Results Panel */
.results-panel {
    position: sticky;
    top: 100px;
}

.result-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.result-card.primary {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 102, 204, 0.05));
    border-color: var(--primary);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

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

.result-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.progress-bar-mini {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s ease;
    border-radius: 0;
}

.action-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
}

.recommendations {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.3);
    border-radius: 0;
}

.recommendations h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.recommendations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.mode-btn {
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.3);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-btn:first-child {
    border-right: none;
}

.mode-btn:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

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

.hidden {
    display: none !important;
}

/* AI Toggle Switch */
.ai-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 32px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 0;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 0;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.ai-status {
    color: var(--primary);
    font-weight: 600;
}

/* Complexity Grid */
.complexity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.complexity-btn {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: 0;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.complexity-btn:hover {
    background-color: rgba(0, 102, 204, 0.1);
    border-color: var(--primary);
}

.complexity-btn.active {
    background-color: rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}

.complexity-name {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.complexity-desc {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.support-included {
    color: var(--secondary) !important;
}

/* Cost Breakdown */
.breakdown-toggle {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 0;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.breakdown-toggle:hover {
    background-color: rgba(0, 102, 204, 0.1);
    border-color: var(--primary);
}

.breakdown-toggle i {
    transition: transform 0.3s ease;
}

.breakdown-toggle.active i {
    transform: rotate(180deg);
}

.cost-breakdown {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 204, 0.3);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-of-type {
    border-bottom: none;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary);
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

/* Tier Comparison */
.tier-comparison {
    margin-bottom: 1.5rem;
}

.tier-comparison h4 {
    color: var(--primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.tier-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 204, 0.3);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.tier-card:hover {
    border-color: var(--primary);
}

.tier-card.recommended {
    background-color: rgba(0, 102, 204, 0.15);
    border-color: var(--primary);
}

.tier-name {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.tier-features {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.tier-price {
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
}

.tier-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* Philosophy Quote */
.philosophy-quote {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1rem;
    background-color: rgba(0, 168, 107, 0.1);
    border: 1px solid rgba(0, 168, 107, 0.3);
}

.philosophy-quote p {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Result Icon Styling */
.result-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 968px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .results-panel {
        position: static;
    }

    .calculator-page {
        padding: 80px 0 2rem;
    }
}

@media (max-width: 640px) {
    .config-panel {
        padding: 1.5rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }
}
