﻿/* Responsive Modal Sizing */
@media (max-width: 1400px) {
    .modal-xl {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .modal-xl {
        max-width: 98%;
        margin: 10px auto;
    }

    .modal-body {
        padding: 1rem 0.75rem;
    }

    .modal-header {
        padding: 1rem 0.75rem 0.5rem;
    }

    .modal-footer {
        padding: 0.5rem 0.75rem 1rem;
    }
}

/* Section Styling */
.recommendation-section {
    margin-bottom: 2rem;
}

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

.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 400;
    margin-left: auto;
}

@media (max-width: 768px) {
    .section-subtitle {
        margin-left: 0;
        width: 100%;
    }
}

/* Grid Layout */
.recommendations-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .recommendations-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (min-width: 1200px) {
    .recommendations-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

/* Card Styling */
.recommendation-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .recommendation-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(0, 191, 255, 0.3);
        transform: translateY(-2px);
    }

    .recommendation-card.smart-card {
        border-left: 3px solid #ffc107;
    }

    .recommendation-card.optimal-card {
        border-left: 3px solid #28a745;
        background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    }

/* Card Content Layout */
.card-main-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .card-main-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
}

.card-image {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    flex-shrink: 0;
}

    .card-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.card-details {
    min-width: 0;
}

.card-gpu-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.card-gpu-specs {
    color: #ccc;
    font-size: 0.85rem;
    margin: 0;
}

.card-performance {
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .card-performance {
        text-align: center;
    }
}

.fps-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.fps-improvement {
    font-size: 0.8rem;
    color: #17a2b8;
    margin: 0;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .card-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
}

.card-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 576px) {
    .card-pricing {
        align-items: center;
    }
}

.price-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107;
    margin: 0;
}

.price-difference {
    font-size: 0.85rem;
    margin: 0;
}

    .price-difference.increase {
        color: #dc3545;
    }

    .price-difference.decrease {
        color: #28a745;
    }

/* Badges */
.recommendation-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-smart {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #000;
}

.badge-optimal {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
}

.recommendation-reason {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

@media (max-width: 576px) {
    .recommendation-reason {
        position: static;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Button Styling */
.btn-select-gpu {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-select-gpu:hover {
        background: linear-gradient(135deg, #0056b3, #004085);
        transform: translateY(-1px);
    }

    .btn-select-gpu:disabled {
        background: #6c757d;
        transform: none;
    }

@media (max-width: 576px) {
    .btn-select-gpu {
        width: 100%;
    }
}

/* Alert Styling */
.current-performance-alert {
    margin-bottom: 1.5rem;
}

/* Loading and No Results */
.no-recommendations {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
