/* Details Page Specific Styles */

/* Comments Drawer & Section */
.btn-comments-toggle {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-xbox);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 800;
    z-index: 1040;
    box-shadow: 0 5px 25px rgba(16, 124, 16, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-comments-toggle:hover {
    transform: translateX(-50%) translateY(-5px);
    background: #0d630d;
    box-shadow: 0 10px 30px rgba(16, 124, 16, 0.7);
    color: white !important;
}

.comments-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: var(--bg-card);
    z-index: 10000;
    border-top: 3px solid var(--accent-xbox);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(105%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    width: 100%;
    margin: 0 auto;
}

/* Game Card Pricing v5 */
.prices-container {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.badge-price-total {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    text-decoration: line-through;
    font-size: 0.75rem;
    padding: 4px 4px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 8px; /* Added fallback margin */
}

@media (max-width: 1200px) {
    .comments-drawer {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .comments-drawer {
        width: 100%;
        height: 60vh;
    }
}

.comments-drawer.active {
    transform: translateY(0);
    visibility: visible;
}

.drawer-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
    -webkit-overflow-scrolling: touch;
}

.comments-list {
    width: 100%;
}

.comment-card {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: block;
    box-sizing: border-box;
}

.gm-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #b8860b, #ffd700);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.gm-tag i {
    font-size: 0.6rem;
}

.gm-tag-sm {
    font-size: 0.58rem;
    padding: 1px 5px;
}

.drawer-footer {
    padding: 20px 25px;
    background: #0f0f12;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.drawer-footer .form-control {
    background: #000 !important;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    color: white !important;
}

.drawer-footer .form-control:focus {
    border-color: var(--accent-xbox);
    box-shadow: 0 0 0 1px var(--accent-xbox);
}

.btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-xbox);
    color: white;
    border: none;
    transition: 0.3s;
    margin-left: 15px;
}

.btn-send:hover {
    background: #0d630d;
    transform: scale(1.1);
}

.comments-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1600;
    opacity: 0;
    visibility: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.4s ease;
}

.comments-overlay.active {
    opacity: 1;
    visibility: visible;
}

.reply-card {
    margin-left: 35px;
    border-left: 2px solid var(--accent-xbox);
    background: rgba(255, 255, 255, 0.015);
    padding: 12px 15px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: 10px;
}

/* Page context adjustments for bottom bar */
@media (max-width: 991px) {
    .btn-comments-toggle {
        display: flex !important;
        position: relative !important;
        padding: 10px 15px !important;
        font-size: 0.75rem !important;
        width: 100% !important;
        max-width: 180px;
        justify-content: center;
        margin: 0 !important;
        transform: none !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        white-space: nowrap;
    }
}

/* Subscription Badges */
.subscription-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
}

.sub-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    pointer-events: auto;
}

.gp-ultimate { background: linear-gradient(135deg, #107c10, #22b14c); }
.gp-console { background: #107c10; }
.gp-pc { background: #0078d4; }
.ea-play { background: #ff3056; }
.ubisoft-plus { background: #0070ff; }

/* Technical Features Icons */
.technical-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 5px;
}

.feature-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.feature-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}
