/* Game detail page specific styles */
.game-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.game-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.game-info {
    flex: 1;
}

.game-title-section {
    margin-bottom: 1rem;
}

.game-title-section h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.game-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.game-category {
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-category:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.game-rating, .game-plays {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

.play-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.game-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.game-media {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.game-screenshot {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.game-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-screenshot img:hover {
    transform: scale(1.02);
}

.game-description {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

.description-section {
    margin-bottom: 1.5rem;
}

.description-section:last-child {
    margin-bottom: 0;
}

.description-section h2 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.description-section h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin: 1.25rem 0 0.75rem;
    font-weight: 600;
}

.description-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
    height: 8em;
}

.description-section p.expanded {
    -webkit-line-clamp: unset;
    height: auto;
}

.description-section p::after {
    content: '...';
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding-left: 0.5rem;
}

.description-section p.expanded::after {
    display: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.feature-list li:active {
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.25rem;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--text-color);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    text-align: center;
}

.control-key {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.control-desc {
    font-size: 0.9rem;
    color: var(--text-color);
}

.similar-games {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.similar-games h2 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.game-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 1rem;
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.game-card-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(255, 107, 107, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.game-card-category:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.game-card-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-card-rating {
    font-size: 0.9rem;
    color: #666;
}

.game-card-play {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.game-card-play:hover {
    background: var(--primary-color-dark);
}

/* Comments section styles */
.comments-section {
    margin: 3rem 0;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.comments-section h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.comment-form {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.comment-form-header {
    margin-bottom: 1rem;
}

.comment-name-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.comment-name-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-input label {
    font-weight: 500;
    color: var(--text-color);
}

.star-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star:hover,
.star.active {
    color: #ffd700;
}

.submit-comment {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-comment:hover {
    background-color: var(--primary-color-dark);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: var(--border-radius);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.username {
    font-weight: 600;
    color: var(--text-color);
}

.comment-rating {
    color: #ffd700;
}

.comment-content {
    margin-bottom: 1rem;
}

.comment-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-date {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.like-button,
.reply-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-button:hover,
.reply-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Tablet styles */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .game-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-screenshot {
        height: 250px;
    }

    .play-button {
        width: 100%;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .game-card-image {
        height: 140px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .game-detail {
        padding: 0.75rem;
    }

    .game-header {
        margin-bottom: 1rem;
    }

    .game-title-section h1 {
        font-size: 1.3rem;
    }

    .game-screenshot {
        height: 200px;
    }

    .game-description {
        padding: 1rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .similar-games {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .similar-games h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .game-card-image {
        height: 180px;
    }
} 