/* Game Specific Assets & Styles */

/* Clean Feature Cards (Replaces flashy ones) */
.feature-card {
    background: #2a2a2a; /* Solid dark grey, readable */
    border: 1px solid #444;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: #fff;
    margin-top: 15px;
    font-size: 1.3em;
    font-weight: bold;
}

.feature-card p {
    color: #bbb;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Poker Chip Style Icon */
.poker-chip-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: repeating-conic-gradient(#fff 0 15deg, var(--accent-color) 15deg 30deg);
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.chip-inner {
    width: 100%;
    height: 100%;
    background: #222;
    border-radius: 50%;
    border: 2px dashed #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* ------------------- CSS Game Assets ------------------- */

/* 1. Teen Patti Hand (Already created) */
.tp-hand {
    position: relative;
    width: 120px;
    height: 80px;
    display: inline-block;
    margin: 0 auto 20px;
}
.tp-card {
    position: absolute;
    width: 40px;
    height: 60px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px;
    box-sizing: border-box;
    font-size: 10px;
}
.tp-card.red { color: red; }
.tp-card.black { color: black; }
.tp-card::before { content: attr(data-rank); position: absolute; top: 2px; left: 2px; }
.tp-card::after { content: attr(data-suit); position: absolute; bottom: 2px; right: 2px; font-size: 14px; }
.tp-card:nth-child(1) { left: 10px; transform: rotate(-15deg) translateY(5px); z-index: 1; }
.tp-card:nth-child(2) { left: 40px; transform: rotate(0deg) translateY(-5px); z-index: 2; }
.tp-card:nth-child(3) { left: 70px; transform: rotate(15deg) translateY(5px); z-index: 1; }


/* 2. Ludo Board Asset */
.ludo-asset {
    width: 80px;
    height: 80px;
    background: #fff;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    border: 2px solid #333;
    padding: 2px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.ludo-quad { position: relative; border-radius: 2px; }
.ludo-quad.r { background: #ff4500; }
.ludo-quad.g { background: #4CAF50; }
.ludo-quad.b { background: #3498db; }
.ludo-quad.y { background: #f1c40f; }
.ludo-quad::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 3. Roulette Wheel Asset */
.roulette-asset {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        red 0deg 36deg, black 36deg 72deg, 
        red 72deg 108deg, black 108deg 144deg, 
        red 144deg 180deg, black 180deg 216deg,
        red 216deg 252deg, black 252deg 288deg,
        red 288deg 324deg, black 324deg 360deg
    );
    border: 4px solid gold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
}
.roulette-asset::before {
    content: '';
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    border: 2px solid gold;
    z-index: 1;
}
.roulette-asset::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px white;
}

/* 4. Dragon vs Tiger Asset */
.dt-asset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    height: 80px;
}
.dt-card {
    width: 40px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}
.dt-card.dragon { background: linear-gradient(135deg, #ff4500, #b33100); }
.dt-card.tiger { background: linear-gradient(135deg, #f1c40f, #b7950b); }

/* Popular Game Grid Styles */
.popular-game-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.popular-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.popular-game-card:hover {
    background: #2a2a2a;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.popular-game-card:hover::before {
    transform: scaleX(1);
}

.popular-game-card h4 {
    margin: 10px 0 5px;
    color: #fff;
    font-size: 1.2em;
}

.popular-game-card p {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.play-btn-small {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8em;
    text-decoration: none;
    transition: 0.3s;
}

.popular-game-card:hover .play-btn-small {
    background: var(--primary-color);
    color: #000;
}
