/* PC Configurator Styles */

.pcc-configurator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.pcc-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Koraci */
.pcc-steps {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
}

.pcc-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    color: #6c757d;
    position: relative;
}

.pcc-step.active {
    color: #0066cc;
    background: #fff;
}

.pcc-step.completed {
    color: #28a745;
}

.pcc-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.pcc-step.active .pcc-step-number {
    background: #0066cc;
    color: #fff;
}

.pcc-step.completed .pcc-step-number {
    background: #28a745;
    color: #fff;
}

.pcc-step-title {
    font-weight: 500;
    font-size: 14px;
}

/* Sadržaj */
.pcc-content {
    padding: 40px;
    min-height: 400px;
}

.pcc-step-content {
    display: none;
}

.pcc-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.pcc-title {
    font-size: 28px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 10px;
    text-align: center;
}

.pcc-subtitle {
    font-size: 16px;
    color: #6c757d;
    text-align: center;
    margin: 0 0 40px;
}

/* Namjena kartice */
.pcc-purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pcc-purpose-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcc-purpose-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}

.pcc-purpose-card.selected {
    border-color: #0066cc;
    background: #e7f3ff;
}

.pcc-purpose-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pcc-purpose-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #212529;
}

.pcc-purpose-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Budžet opcije */
.pcc-budget-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.pcc-budget-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcc-budget-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
}

.pcc-budget-card.selected {
    border-color: #0066cc;
    background: #e7f3ff;
}

.pcc-budget-amount {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.pcc-budget-card p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* Prioritet opcije */
.pcc-priority-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* CPU Vendor opcije */
.pcc-cpu-vendor-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.pcc-vendor-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcc-vendor-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.15);
}

.pcc-vendor-card.selected {
    border-color: #0066cc;
    background: #e7f3ff;
}

.pcc-vendor-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pcc-vendor-icon svg {
    color: #495057;
}

.pcc-vendor-card.selected .pcc-vendor-icon svg {
    color: #0066cc;
}

.pcc-vendor-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #212529;
}

.pcc-vendor-card p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Prioritet opcije */
.pcc-priority-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pcc-priority-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcc-priority-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
}

.pcc-priority-card.selected {
    border-color: #0066cc;
    background: #e7f3ff;
}

.pcc-priority-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.pcc-priority-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #212529;
}

.pcc-priority-card p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

/* Navigacija */
.pcc-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    border-top: 1px solid #e9ecef;
    gap: 15px;
}

.pcc-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #212529;
}

.pcc-btn:hover {
    background: #e9ecef;
}

.pcc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pcc-btn-primary {
    background: #0066cc;
    color: #fff;
}

.pcc-btn-primary:hover {
    background: #0052a3;
}

.pcc-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.pcc-btn-secondary:hover {
    background: #545b62;
}

.pcc-btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Rezultat */
.pcc-result {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    overflow: hidden;
}

.pcc-result-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pcc-result-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.pcc-btn-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.pcc-btn-close:hover {
    background: rgba(255,255,255,0.3);
}

.pcc-result-content {
    padding: 30px;
}

.pcc-components-list {
    margin-bottom: 25px;
}

.pcc-component-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 15px;
}

.pcc-component-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
}

.pcc-component-info {
    flex: 1;
}

.pcc-component-type {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 3px;
}

.pcc-component-name {
    font-size: 15px;
    color: #212529;
    font-weight: 500;
}

.pcc-component-price {
    font-size: 18px;
    font-weight: 700;
    color: #0066cc;
}

.pcc-result-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pcc-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.pcc-total-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
}

.pcc-warnings {
    margin-bottom: 20px;
}

.pcc-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #856404;
}

.pcc-result-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Loading */
.pcc-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #fff;
}

.pcc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pcc-loading p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .pcc-content {
        padding: 20px;
    }
    
    .pcc-purpose-grid,
    .pcc-priority-options {
        grid-template-columns: 1fr;
    }
    
    .pcc-budget-options,
    .pcc-cpu-vendor-options {
        grid-template-columns: 1fr;
    }
    
    .pcc-navigation {
        padding: 15px 20px;
    }
    
    .pcc-result-actions {
        flex-direction: column;
    }
    
    .pcc-result-actions button {
        width: 100%;
    }
    
    .pcc-step-title {
        display: none;
    }
    
    .pcc-steps {
        padding: 10px 5px;
    }
    
    .pcc-step {
        padding: 10px 5px;
    }
}
