/* Etiket Rehberi v3 - Frontend CSS */

/* Ana Container */
.etiket-rehberi-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Header */
.er-header {
    text-align: center;
    margin-bottom: 40px;
}

.er-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: white;
}

.er-header p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* Progress Bar */
.er-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.er-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.er-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.er-progress-step.active .er-progress-circle {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

.er-progress-step.completed .er-progress-circle {
    background: #10b981;
    color: white;
}

.er-progress-line {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    transition: all 0.3s ease;
}

.er-progress-line.completed {
    background: #10b981;
}

/* Sektör Selection */
.er-sektor-selection {
    animation: fadeIn 0.5s ease;
}

.er-question-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: white;
}

.er-sektor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.er-sektor-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.er-sektor-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.er-sektor-card.selected {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.er-sektor-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.er-sektor-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.er-sektor-card.selected .er-sektor-desc {
    opacity: 0.7;
}

/* Question Container */
.er-question-container {
    animation: fadeIn 0.5s ease;
}

.er-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.er-option-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.er-option-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.er-option-card.selected {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.er-option-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.er-option-card.selected .er-option-text {
    color: #667eea;
}

/* Navigation Buttons */
.er-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.er-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.er-btn-primary {
    background: white;
    color: #667eea;
}

.er-btn-primary:hover:not(:disabled) {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.er-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.er-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.er-btn-success {
    background: #10b981;
    color: white;
}

.er-btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Loading State */
.er-loading {
    text-align: center;
    padding: 60px 20px;
}

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

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

.er-loading p {
    font-size: 18px;
    opacity: 0.9;
}

/* Results Section */
.er-results {
    animation: fadeIn 0.5s ease;
}

.er-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.er-results-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.er-results-header p {
    font-size: 16px;
    opacity: 0.9;
}

.er-recommendations {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.er-recommendation-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.er-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.er-recommendation-title h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: white;
}

.er-recommendation-score {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.er-recommendation-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.er-recommendation-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.er-feature-tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* WooCommerce Products Section */
.er-products-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.er-products-section h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.er-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.er-product-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.er-product-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.er-product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.er-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.er-product-info h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.er-product-price {
    font-size: 16px;
    font-weight: 700;
    margin-top: auto;
}

/* Restart Button */
.er-restart-btn {
    text-align: center;
    margin-top: 32px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .etiket-rehberi-wrapper {
        padding: 24px;
        margin: 20px;
    }

    .er-header h2 {
        font-size: 24px;
    }

    .er-sektor-grid,
    .er-options-grid {
        grid-template-columns: 1fr;
    }

    .er-progress-bar {
        padding: 0 10px;
    }

    .er-progress-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .er-progress-line {
        width: 40px;
    }

    .er-navigation {
        flex-direction: column;
        width: 100%;
    }

    .er-btn {
        width: 100%;
        justify-content: center;
    }
}
