/* Advanced Game Theme Styles */

/* Card Suit Background Pattern */
.suit-pattern-bg {
    position: relative;
}

.suit-pattern-bg::after {
    content: '♠ ♥ ♦ ♣';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 8em;
    color: rgba(255, 215, 0, 0.03);
    letter-spacing: 50px;
    word-spacing: 50px;
    line-height: 1.5;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* Statistics Counter Section */
.stats-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.stat-item {
    padding: 30px;
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(transparent, rgba(255,215,0,0.3), transparent);
}

.stat-item:last-child::before {
    display: none;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-icon i {
    font-size: 1.5em;
    color: var(--primary-color);
}

.stat-number {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5em;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: #888;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* App Info Box */
.app-info-box {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid #444;
    border-radius: 15px;
    padding: 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .app-info-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.app-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff4500, #ff8c00);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.app-details h3 {
    color: white;
    margin: 0 0 10px;
    font-size: 1.5em;
}

.app-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #aaa;
    font-size: 0.9em;
}

.app-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.app-meta i {
    color: var(--primary-color);
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.app-rating i {
    color: gold;
}

/* Download Steps */
.download-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .download-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .download-steps { grid-template-columns: 1fr; }
}

.step-item {
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50px;
    font-size: 2em;
    color: var(--primary-color);
}

.step-item:last-child::after {
    display: none;
}

@media (max-width: 992px) {
    .step-item::after { display: none; }
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #000;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.step-item h4 {
    color: white;
    margin-bottom: 10px;
}

.step-item p {
    color: #888;
    font-size: 0.9em;
}

/* Card Animation */
.card-deal-animation {
    position: relative;
    width: 100%;
    height: 150px;
    margin: 20px 0;
}

.deal-card {
    position: absolute;
    width: 60px;
    height: 90px;
    background: linear-gradient(135deg, #fff, #f5f5f5);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: dealCard 2s ease-out infinite;
    opacity: 0;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
    font-weight: bold;
}

.deal-card.heart::before { content: '♥'; color: red; }
.deal-card.spade::before { content: '♠'; color: black; }
.deal-card.diamond::before { content: '♦'; color: red; }
.deal-card.club::before { content: '♣'; color: black; }

.deal-card:nth-child(1) { animation-delay: 0s; left: 20%; }
.deal-card:nth-child(2) { animation-delay: 0.3s; left: 35%; }
.deal-card:nth-child(3) { animation-delay: 0.6s; left: 50%; }
.deal-card:nth-child(4) { animation-delay: 0.9s; left: 65%; }

@keyframes dealCard {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(50px) rotate(720deg); opacity: 0; }
}

/* Gold Trim Divider */
.gold-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0;
    border: none;
}

/* Poker Table Visual */
.poker-table {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto;
    background: radial-gradient(ellipse at center, #1a5f2a 0%, #0d4d1a 50%, #0a3912 100%);
    border-radius: 150px / 100px;
    border: 15px solid #8B4513;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poker-table::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 140px / 90px;
}

/* Glow Effect */
.glow-gold {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Animated Border */
.animated-border {
    position: relative;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: borderMove 3s linear infinite;
}

@keyframes borderMove {
    0% { left: -100%; }
    100% { left: 100%; }
}
