/* Game Bundle Picker Styles */

/* ========================================
   Hero Section - PlayStation Style
   ======================================== */

.gbp-hero-section {
    position: relative;
    background: linear-gradient(135deg, #003087 0%, #0070D8 50%, #00439C 100%);
    padding: 80px 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 0;
}

.gbp-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 112, 216, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.gbp-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.gbp-hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.gbp-hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    color: #E8F4FF;
    font-weight: 400;
}

.gbp-hero-subtitle strong {
    color: #fff;
    font-weight: 600;
}

.gbp-hero-note {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 30px 0;
    color: #B8D9FF;
    font-style: italic;
}

.gbp-hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.gbp-hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.gbp-hero-features li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.gbp-feature-icon {
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.gbp-hero-cta {
    background: #fff;
    color: #003087;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 112, 216, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    text-transform: none;
    letter-spacing: 0;
}

.gbp-hero-cta:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 112, 216, 0.6);
}

.gbp-cta-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.gbp-hero-cta:hover .gbp-cta-icon {
    transform: translateX(5px);
}

.gbp-hero-info {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #B8D9FF;
}

.gbp-hero-info a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.gbp-hero-info a:hover {
    opacity: 0.8;
}

/* Animated Background Shapes */
.gbp-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gbp-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.gbp-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0070D8, transparent);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.gbp-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #00439C, transparent);
    bottom: -80px;
    left: -80px;
    animation: float 15s ease-in-out infinite reverse;
}

.gbp-shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fff, transparent);
    top: 50%;
    left: 20%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* ========================================
   Game Picker Container
   ======================================== */

.gbp-game-picker-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gbp-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.gbp-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.gbp-console-selection {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gbp-console-selection h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.gbp-console-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gbp-console-option {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
}

.gbp-console-option input[type="radio"] {
    display: none;
}

.gbp-console-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gbp-console-option:hover .gbp-console-label {
    border-color: #0073aa;
    background: #f8f9fa;
}

.gbp-console-option input[type="radio"]:checked + .gbp-console-label {
    border-color: #0073aa;
    background: #e7f3ff;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
}

.gbp-console-icon {
    font-size: 32px;
    line-height: 1;
}

.gbp-console-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.gbp-console-option input[type="radio"]:checked + .gbp-console-label .gbp-console-name {
    color: #0073aa;
}

/* Filter Section */
.gbp-filter-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.gbp-filter-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.gbp-sort-select {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    padding: 12px 45px 12px 16px;
    font-size: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230073aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gbp-sort-select option {
    padding: 10px;
    font-size: 15px;
}

.gbp-sort-select:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.1);
}

.gbp-sort-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Main Content Area - Games + Sidebar */
.gbp-main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    position: relative;
}

.gbp-games-section {
    flex: 1;
    min-width: 0;
}

.gbp-games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gbp-game-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    min-height: 110px;
    display: flex;
    align-items: center;
}

.gbp-game-item:hover:not(.gbp-game-disabled) {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.gbp-game-item.gbp-game-selected {
    border-color: #28a745;
    border-width: 3px;
    background: #f0fff4;
    box-shadow: 0 2px 12px rgba(40, 167, 69, 0.2);
}

.gbp-game-item.gbp-game-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.gbp-game-item.gbp-game-disabled .gbp-game-checkbox-label {
    cursor: not-allowed;
}

.gbp-game-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.gbp-game-checkbox {
    display: none;
}

.gbp-game-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.gbp-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gbp-game-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
    flex-wrap: nowrap;
    min-width: 0;
    flex: 1;
}

.gbp-game-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.gbp-game-price {
    font-size: 15px;
    font-weight: 600;
    color: #0073aa;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    padding-top: 2px;
}

/* Sticky Sidebar */
.gbp-sidebar-sticky {
    width: 320px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.gbp-sidebar-content {
    background: #fff;
    border: 2px solid #0073aa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.gbp-sidebar-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.gbp-sidebar-stats {
    margin-bottom: 20px;
}

.gbp-credit-info,
.gbp-total-info,
.gbp-selected-count {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gbp-credit-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.gbp-credit-label,
.gbp-total-label,
.gbp-count-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.gbp-credit-values,
.gbp-total-values {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.gbp-credit-remaining,
.gbp-total-amount {
    font-size: 28px;
    font-weight: bold;
}

.gbp-credit-separator {
    font-size: 18px;
    opacity: 0.7;
}

.gbp-credit-limit,
.gbp-total-currency {
    font-size: 14px;
    opacity: 0.8;
}

.gbp-total-info {
    background: #e7f3ff;
    color: #0073aa;
}

.gbp-total-info .gbp-total-label,
.gbp-total-info .gbp-total-amount,
.gbp-total-info .gbp-total-currency {
    color: #0073aa;
}

.gbp-selected-count {
    text-align: center;
    background: #fff;
    border: 2px solid #e9ecef;
}

.gbp-count-label {
    color: #666;
    font-size: 12px;
}

.gbp-count-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
    margin-top: 5px;
}

.gbp-message-area {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 5px;
    display: none;
}

.gbp-message-area p {
    margin: 0;
    font-weight: 500;
}

.gbp-message-area.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.gbp-message-area.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.gbp-message-area.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    display: block;
}

.gbp-add-to-cart-btn {
    width: 100%;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.gbp-add-to-cart-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.gbp-add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Admin Order Details Styles */
.gbp-order-games {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.gbp-order-games h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.gbp-order-games table {
    width: 100%;
}

.gbp-order-games table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-weight: 600;
}

.gbp-order-games table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Frontend Order Details Styles */
.gbp-order-games-frontend {
    margin-top: 40px;
}

.gbp-order-games-frontend h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.gbp-order-games-frontend table {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .gbp-main-content {
        flex-direction: column;
    }
    
    .gbp-sidebar-sticky {
        width: 100%;
        order: -1;
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .gbp-sidebar-content {
        position: relative;
        top: 0;
    }
    
    /* Hero adjustments for tablet */
    .gbp-hero-section {
        padding: 60px 20px;
    }
    
    .gbp-hero-title {
        font-size: 36px;
    }
    
    .gbp-hero-features {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .gbp-game-picker-container {
        padding: 15px;
    }
    
    .gbp-games-list {
        grid-template-columns: 1fr;
    }
    
    .gbp-console-options {
        flex-direction: column;
    }
    
    .gbp-console-option {
        min-width: 100%;
    }
    
    .gbp-game-name {
        font-size: 14px;
        line-height: 1.4;
        max-height: 4.2em;
        -webkit-line-clamp: 3;
    }
    
    .gbp-game-price {
        font-size: 14px;
    }
    
    .gbp-game-item {
        min-height: 120px;
    }
    
    /* Filter section mobile */
    .gbp-filter-section {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .gbp-filter-label {
        font-size: 15px;
    }
    
    .gbp-sort-select {
        min-width: 100%;
        width: 100%;
    }
    
    /* Hero mobile adjustments */
    .gbp-hero-section {
        padding: 60px 15px;
        margin-bottom: 30px;
    }
    
    .gbp-hero-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .gbp-hero-subtitle {
        font-size: 16px;
    }
    
    .gbp-hero-note {
        font-size: 14px;
    }
    
    .gbp-hero-features {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .gbp-hero-features li {
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }
    
    .gbp-hero-cta {
        width: 100%;
        padding: 16px 30px;
        font-size: 16px;
        justify-content: center;
    }
    
    .gbp-hero-info {
        font-size: 13px;
    }
    
    /* Hide animated shapes on mobile for performance */
    .gbp-hero-shapes {
        display: none;
    }
}
