@import url('variables.css');
@import url('navigation.css');

/* Game Page Main Section */
.game-section {
    min-height: 100vh;
    background-color: var(--dark-coffee-900);
    padding: 4rem 1.5rem;
}

.game-container {
    max-width: 80rem;
    margin: 0 auto;
}

.game-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.game-left {
    width: 60%;
}

.game-left h2 {
    font-size: 3rem;
    font-weight: bold;
    color: var(--rosy-copper-500);
    margin-bottom: 2rem;
}

.game-left p {
    font-size: 1.125rem;
    color: var(--dark-coffee-200);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.game-left strong {
    font-weight: 600;
}

.game-left p strong:not(.game-left p) {
    color: var(--apricot-cream-500);
}

.game-left p strong.dark-cyan {
    color: var(--dark-cyan-300);
}

.game-left p strong.carrot-orange {
    color: var(--carrot-orange-300);
}

.card-types {
    margin-top: 2.5rem;
}

.card-types h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--apricot-cream-500);
    margin-bottom: 1rem;
}

.card-types ul {
    list-style: none;
    space: 1rem;
}

.card-types li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--dark-coffee-200);
    font-size: 1rem;
    line-height: 1.5;
}

.card-types li span:first-child {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--rosy-copper-500);
    min-width: 2rem;
}

.card-types li strong {
    color: var(--dark-coffee-200);
    font-weight: 600;
}

.game-cta {
    margin-top: 2.5rem;
}

.btn-order {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--rosy-copper-500);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-order:hover {
    background-color: var(--rosy-copper-600);
    transform: translateY(-2px);
}

.game-right {
    width: 40%;
    position: sticky;
    top: 6rem;
}

.game-image {
    background: linear-gradient(to bottom right, var(--carrot-orange-700), var(--carrot-orange-900));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    aspect-ratio: 1;
}

.game-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Live Chat Section */
.chat-section {
    background: linear-gradient(to bottom, var(--dark-coffee-800), var(--dark-coffee-900));
    padding: 4rem 1.5rem;
}

.chat-container {
    max-width: 80rem;
    margin: 0 auto;
}

.chat-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--rosy-copper-500);
    margin-bottom: 3rem;
}

.chat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.chat-box {
    background-color: var(--dark-coffee-700);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 24rem;
}

.comments-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 0.5rem;
}

.comment-item {
    background-color: var(--dark-coffee-600);
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid var(--rosy-copper-500);
}

.comment-username {
    font-weight: bold;
    color: var(--rosy-copper-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.comment-text {
    color: var(--dark-coffee-200);
    font-size: 0.875rem;
    line-height: 1.4;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
}

.chat-form input {
    flex: 1;
    background-color: var(--dark-coffee-600);
    color: var(--dark-coffee-50);
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    outline: none;
}

.chat-form input::placeholder {
    color: var(--dark-coffee-400);
}

.chat-form input:focus {
    ring: 2px;
    ring-color: var(--rosy-copper-500);
}

.chat-form button {
    padding: 0.5rem 1rem;
    background-color: var(--rosy-copper-500);
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-form button:hover {
    background-color: var(--rosy-copper-600);
}

.stats-box {
    background-color: var(--dark-coffee-700);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.stats-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark-cyan-200);
    margin-bottom: 1rem;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--dark-coffee-200);
}

.stats-value {
    font-weight: bold;
    color: var(--rosy-copper-500);
}

.top-players {
    background-color: var(--dark-coffee-700);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.top-players-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--apricot-cream-200);
    margin-bottom: 1rem;
}

.player-item {
    color: var(--dark-coffee-100);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.player-item .player-rank {
    color: var(--rosy-copper-500);
    font-weight: bold;
}

/* Card Carousel Section */
.carousel-section {
    background-color: var(--dark-coffee-800);
    padding: 4rem 1.5rem;
}

.carousel-container {
    max-width: 80rem;
    margin: 0 auto;
}

.carousel-title {
    font-size: 2.25rem;
    font-weight: bold;
    text-align: center;
    color: var(--rosy-copper-500);
    margin-bottom: 3rem;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-content {
    flex: 1;
    overflow: hidden;
}

.carousel-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.75rem 0.25rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-slider::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex-shrink: 0;
    width: 150px;
    aspect-ratio: 2/3;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.carousel-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Guidebook Carousel - Landscape Ratio */
.carousel-slider-guidebook .carousel-item-guidebook {
    flex-shrink: 0 !important;
    width: 700px !important;
    height: 500px !important;
    aspect-ratio: unset !important;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.carousel-slider-guidebook .carousel-item-guidebook:hover {
    transform: translateY(-8px) scale(1.05);
}

.carousel-slider-guidebook .carousel-item-guidebook img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-content {
        flex-direction: column;
    }

    .game-left,
    .game-right {
        width: 100%;
    }

    .game-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .game-left h2 {
        font-size: 2rem;
    }

    .chat-grid {
        grid-template-columns: 1fr;
    }

    .carousel-item {
        width: 120px;
    }
}
