/* Slot Detail Page (/demo-slot-games/{slug}) — scoped styles
   Class prefixes:
     vgdp-* main demo-slot page layout
     vgqs-* quick stats grid
     vgrg-* recent games row
*/

.vgdp-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.vgdp-layout {
    display: grid;
    grid-template-columns: 1fr 318px;
    gap: 24px;
}

.vgdp-main {
    min-width: 0;
}

/* Breadcrumb */
.vgdp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    word-break: break-word;
}

.vgdp-breadcrumb a {
    color: #fe5001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vgdp-breadcrumb a:hover {
    color: #ff8c3a;
}

.vgdp-breadcrumb-separator {
    color: #ccc;
}

/* Header */
.vgdp-header {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vgdp-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vgdp-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vgdp-game-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vgdp-game-info h1 {
    font-size: 28px;
    font-weight: 800;
    color: #281e32;
    margin-bottom: 6px;
}

.vgdp-provider-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #fe5001;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vgdp-provider-link:hover {
    color: #ff8c3a;
}

.vgdp-favorite-btn {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.vgdp-favorite-btn:hover {
    background: #fff5f0;
    border-color: #fe5001;
    transform: scale(1.1);
}

.vgdp-favorite-btn.vgdp-active {
    background: #fff5f0;
    border-color: #fe5001;
}

.vgdp-heart-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #fe5001;
    stroke-width: 2;
    transition: fill 0.3s ease;
}

.vgdp-favorite-btn.vgdp-active .vgdp-heart-icon {
    fill: #fe5001;
}

/* Quick Stats */
.vgqs-quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.vgqs-stat-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.vgqs-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vgqs-stat-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.08;
    transition: all 0.4s ease;
}

.vgqs-stat-box:hover .vgqs-stat-bg {
    transform: scale(1.3);
    opacity: 0.12;
}

.vgqs-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.vgqs-stat-box:hover .vgqs-stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.vgqs-stat-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.vgqs-stat-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.vgqs-stat-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.vgqs-stat-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vgqs-stat-success .vgqs-stat-icon { background: linear-gradient(135deg, #22c55e, #10b981); color: white; box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3); }
.vgqs-stat-success .vgqs-stat-value { color: #22c55e; }
.vgqs-stat-success .vgqs-stat-bg { background: linear-gradient(135deg, #22c55e, #10b981); }
.vgqs-stat-success:hover { border-color: rgba(34, 197, 94, 0.3); }
.vgqs-badge-excellent { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.vgqs-stat-warning .vgqs-stat-icon { background: linear-gradient(135deg, #f59e0b, #f97316); color: white; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.vgqs-stat-warning .vgqs-stat-value { color: #f59e0b; }
.vgqs-stat-warning .vgqs-stat-bg { background: linear-gradient(135deg, #f59e0b, #f97316); }
.vgqs-stat-warning:hover { border-color: rgba(245, 158, 11, 0.3); }
.vgqs-badge-high { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.vgqs-stat-primary .vgqs-stat-icon { background: linear-gradient(135deg, #fe5001, #ff8c3a); color: white; box-shadow: 0 4px 12px rgba(254, 80, 1, 0.3); }
.vgqs-stat-primary .vgqs-stat-value { color: #fe5001; }
.vgqs-stat-primary .vgqs-stat-bg { background: linear-gradient(135deg, #fe5001, #ff8c3a); }
.vgqs-stat-primary:hover { border-color: rgba(254, 80, 1, 0.3); }
.vgqs-badge-huge { background: rgba(254, 80, 1, 0.1); color: #fe5001; }

.vgqs-stat-info .vgqs-stat-icon { background: linear-gradient(135deg, #06b6d4, #0ea5e9); color: white; box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3); }
.vgqs-stat-info .vgqs-stat-value { color: #06b6d4; }
.vgqs-stat-info .vgqs-stat-bg { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.vgqs-stat-info:hover { border-color: rgba(6, 182, 212, 0.3); }
.vgqs-badge-fixed { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

/* Demo player */
.vgdp-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: #281e32;
}

.vgdp-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.vgdp-iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.vgdp-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
}

.vgdp-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

@keyframes vgdp-pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.vgdp-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #fe5001, #ff8c3a);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(254, 80, 1, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    animation: vgdp-pulse-ring 2s infinite;
}

.vgdp-play-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(254, 80, 1, 0.7);
}

.vgdp-play-btn:active {
    transform: translateY(-2px);
}

.vgdp-play-btn svg {
    transition: transform 0.3s ease;
}

.vgdp-play-btn:hover svg {
    transform: translateX(4px);
}

.vgdp-age-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.6;
    max-width: 600px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.vgdp-age-notice svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Close button — hidden by default; only revealed when iframe is fullscreen on mobile */
.vgdp-iframe-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
}

.vgdp-iframe-close:active {
    background: rgba(0, 0, 0, 0.85);
}

body.vgdp-no-scroll {
    overflow: hidden;
}

/* Game Details section (article body or "coming soon" placeholder) */
.vgdp-details {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vgdp-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #281e32;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.vgdp-card-title svg {
    color: #fe5001;
    flex-shrink: 0;
}

.vgdp-article-body {
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

.vgdp-article-body h2, .vgdp-article-body h3, .vgdp-article-body h4 {
    color: #281e32;
    margin-top: 24px;
    margin-bottom: 12px;
}

.vgdp-article-body p {
    margin-bottom: 14px;
}

.vgdp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

.vgdp-coming-soon {
    text-align: center;
    padding: 40px 24px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.vgdp-coming-soon h3 {
    color: #281e32;
    font-size: 18px;
    margin-bottom: 8px;
}

.vgdp-coming-soon p {
    font-size: 14px;
    margin: 0;
}

/* Game metadata grid (Game Details card) */
.vgdp-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.vgdp-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vgdp-detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #fe5001, #ff8c3a);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vgdp-detail-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.vgdp-detail-item:hover::before {
    opacity: 1;
}

.vgdp-detail-featured {
    background: linear-gradient(135deg, #f8f9fa, #e0e7ff);
    border: 2px solid #e0e7ff;
}

.vgdp-detail-highlighted {
    background: linear-gradient(135deg, #f8f9fa, #fff5f0);
    border: 2px solid #fff5f0;
}

.vgdp-detail-full {
    grid-column: 1 / -1;
}

.vgdp-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fe5001, #ff8c3a);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vgdp-detail-icon svg {
    width: 20px;
    height: 20px;
}

.vgdp-detail-content {
    flex: 1;
    min-width: 0;
}

.vgdp-detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vgdp-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: #281e32;
    line-height: 1.2;
}

.vgdp-value-success { color: #22c55e; }
.vgdp-value-warning { color: #f59e0b; }
.vgdp-value-primary { color: #fe5001; }

.vgdp-features-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.vgdp-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #281e32;
    transition: all 0.3s ease;
}

.vgdp-feature-tag.vgdp-feature-active {
    border-color: #fe5001;
    background: #fff5f0;
    color: #fe5001;
}

/* Recent Games Row */
.vgrg-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.vgrg-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #281e32;
    margin: 0;
}

.vgrg-sidebar-title svg {
    color: #fe5001;
}

.vgrg-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    background: linear-gradient(135deg, #fe5001, #ff8c3a);
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(254, 80, 1, 0.25);
}

.vgrg-view-all-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 80, 1, 0.4);
    gap: 12px;
    color: white;
}

.vgrg-view-all-link svg {
    transition: transform 0.3s ease;
}

.vgrg-view-all-link:hover svg {
    transform: translateX(3px);
}

.vgrg-games-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.vgrg-game-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vgrg-game-card:hover {
    transform: translateY(-8px);
    color: inherit;
}

.vgrg-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #281e32, #3a2d47);
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.vgrg-game-card:hover .vgrg-card-thumb {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.vgrg-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vgrg-game-card:hover .vgrg-card-thumb img {
    transform: scale(1.15);
}

.vgrg-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vgrg-game-card:hover .vgrg-card-overlay {
    opacity: 1;
}

.vgrg-play-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fe5001, #ff8c3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(254, 80, 1, 0.5);
    transition: transform 0.3s ease;
}

.vgrg-game-card:hover .vgrg-play-circle {
    transform: scale(1.15);
}

.vgrg-play-circle svg {
    margin-left: 2px;
}

.vgrg-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vgrg-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #281e32;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vgrg-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 10px;
}

.vgrg-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}

.vgrg-stat-rtp { color: #22c55e; }
.vgrg-stat-rtp svg { flex-shrink: 0; }

.vgrg-stat-divider {
    width: 1px;
    height: 14px;
    background: #e0e0e0;
}

.vgrg-stat-volatility {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vgrg-stat-volatility svg { flex-shrink: 0; }
.vgrg-vol-low { color: #22c55e; }
.vgrg-vol-medium { color: #f59e0b; }
.vgrg-vol-high { color: #ef4444; }

/* Sidebar */
.vgdp-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.vgdp-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.vgdp-casino-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.vgdp-casino-item:hover {
    background: #fff5f0;
    transform: translateX(4px);
    color: inherit;
    text-decoration: none;
}

.vgdp-casino-logo {
    width: 60px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border-radius: 8px;
}

.vgdp-casino-info {
    flex: 1;
    min-width: 0;
}

.vgdp-casino-name {
    font-size: 14px;
    font-weight: 700;
    color: #281e32;
    margin-bottom: 4px;
}

.vgdp-casino-bonus {
    font-size: 12px;
    color: #fe5001;
    font-weight: 600;
}

.vgdp-casino-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #fe5001, #ff8c3a);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vgdp-casino-item:hover .vgdp-casino-btn {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(254, 80, 1, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .vgqs-quick-stats { grid-template-columns: repeat(2, 1fr); }
    .vgdp-details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .vgdp-layout {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }
    .vgdp-main-col { display: contents; }
    .vgdp-iframe-wrapper { order: 1; }
    .vgdp-sidebar { order: 2; position: static; }
    .vgdp-main-col > section:nth-of-type(1) { order: 3; }
    .vgdp-main-col > section:nth-of-type(2) { order: 4; }
    .vgrg-games-row { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 968px) {
    .vgrg-games-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 768px) {
    .vgdp-container { padding: 0; }
    .vgdp-header { padding: 16px; box-shadow: none; }
    .vgdp-header-top { flex-direction: column; align-items: flex-start; gap: 16px; }
    .vgdp-game-icon { width: 60px; height: 60px; }
    .vgdp-game-info h1 { font-size: 20px; }
    .vgdp-play-btn { padding: 14px 32px; font-size: 16px; }
    .vgdp-age-notice { font-size: 11px; padding: 10px 16px; }

    .vgdp-iframe-wrapper.vgdp-mobile-fullscreen {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        padding-top: 0;
        border-radius: 0;
        z-index: 9999;
        box-shadow: none;
    }

    .vgdp-iframe-wrapper.vgdp-mobile-fullscreen .vgdp-iframe-close {
        display: flex;
    }
}

@media (max-width: 640px) {
    .vgqs-quick-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .vgqs-stat-box { padding: 16px 12px; gap: 10px; }
    .vgqs-stat-icon { width: 40px; height: 40px; }
    .vgqs-stat-icon svg { width: 20px; height: 20px; }
    .vgqs-stat-value { font-size: 20px; }
    .vgqs-stat-label { font-size: 10px; }
    .vgqs-stat-badge { font-size: 9px; padding: 2px 6px; }
    .vgrg-games-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .vgrg-card-thumb { margin-bottom: 8px; }
    .vgrg-card-title { font-size: 12px; }
    .vgrg-sidebar-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .vgrg-view-all-link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .vgqs-stat-box,
    .vgqs-stat-icon,
    .vgqs-stat-bg,
    .vgrg-game-card,
    .vgrg-card-thumb img,
    .vgrg-card-overlay,
    .vgrg-play-circle,
    .vgrg-view-all-link,
    .vgdp-play-btn {
        transition: none !important;
        animation: none !important;
    }
}
