/* Shared Styles for Single Post Templates */

/* ============================================
   Layout Grid (used in single-game, single-bonus, single-review)
   ============================================ */
.single-game-content__inner {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: start;
}

@media (min-width: 992px) {
    .single-game-content__inner {
        padding-left: 2%;
        padding-right: 2%;
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .single-game-content__inner {
        padding-left: 1.25%;
        padding-right: 1.25%;
    }
}

@media (max-width: 991px) {
    .single-game-content__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 575px) {
    .single-game-content__inner {
        padding-left: 0.75%;
        padding-right: 0.75%;
    }
    .single-game-content {
        padding: 40px 0;
    }
}

.single-game-content__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Sidebar - used in single-game, single-bonus, single-review */
.single-game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.single-game-sidebar__combined {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 24px 28px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.single-game-sidebar__widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

/* Common widget titles with orange underline */
.single-game-sidebar__widget-title,
.single-game-popular__title,
.single-game-news__title {
    font-size: 20px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 24px;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.2;
    position: relative;
}

.single-game-sidebar__widget-title::after,
.single-game-popular__title::after,
.single-game-news__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #ffb400;
}

/* Widgets inside combined block */
.single-game-sidebar__combined .single-game-sidebar__widget {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.single-game-sidebar__combined .single-game-sidebar__widget + .single-game-sidebar__widget {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 991px) {
    .single-game-sidebar {
        margin-top: 0;
    }
}

/* ============================================
   Our Review Section (used in single-casino, single-game, single-bonus, single-review)
   ============================================ */
.single-casino-review {
    margin-bottom: 0;
}

.single-casino-review__title {
    font-size: 28px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 28px;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.2;
    position: relative;
}

.single-casino-review__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #ff8c42;
}

.single-casino-review__content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .single-casino-review__content {
        flex-direction: column;
        gap: 32px;
    }
}

.single-casino-review__overall {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
}

.single-casino-review__overall-rating {
    font-size: 72px;
    font-weight: 700;
    color: #43b02a;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1;
    margin: 0 0 8px;
}

.single-casino-review__overall-label {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 400;
}

.single-casino-review__breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.single-casino-review__item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.single-casino-review__item-name {
    font-size: 15px;
    font-weight: 500;
    color: #0b1324;
    font-family: "Poppins", Arial, sans-serif;
    min-width: 140px;
    flex-shrink: 0;
}

.single-casino-review__item-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.single-casino-review__item-bar-fill {
    height: 100%;
    background: #43b02a;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.single-casino-review__item-percent {
    font-size: 15px;
    font-weight: 500;
    color: #0b1324;
    font-family: "Poppins", Arial, sans-serif;
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

/* Responsive adjustments for Our Review */
@media (max-width: 991px) {
    .single-casino-review__title {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .single-casino-review__title {
        font-size: 22px;
    }
    
    .single-casino-review__content {
        flex-direction: column;
        gap: 24px;
    }
    
    .single-casino-review__overall {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================
   Comments Section (used in single-casino, single-game, single-bonus)
   ============================================ */
.single-casino-comments {
    margin-top: 48px;
    width: 100%;
    max-width: 100%;
}

.single-casino-comments__inner {
    width: 100%;
    max-width: 100%;
}

.single-casino-comments__list {
    margin-bottom: 48px;
}

.single-casino-comments__title {
    font-size: 28px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 32px;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.2;
}

.single-casino-comments__items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-casino-comment {
    margin-bottom: 32px;
}

.single-casino-comment__article {
    display: flex;
    gap: 20px;
}

.single-casino-comment__avatar {
    flex-shrink: 0;
}

.single-casino-comment__avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.single-casino-comment__body {
    flex: 1;
}

.single-casino-comment__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.single-casino-comment__author {
    font-size: 16px;
    font-weight: 700;
    color: #0b1324;
    font-family: "Poppins", Arial, sans-serif;
    font-style: normal;
    display: block;
}

.single-casino-comment__date {
    font-size: 14px;
    color: #6b7280;
    font-family: "Poppins", Arial, sans-serif;
    display: block;
}

.single-casino-comment__content {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    font-family: "Poppins", Arial, sans-serif;
    margin-bottom: 12px;
}

.single-casino-comment__content p {
    margin: 0 0 12px;
}

.single-casino-comment__content p:last-child {
    margin-bottom: 0;
}

.single-casino-comment__reply {
    margin-top: 8px;
}

.single-casino-comment__reply-link {
    font-size: 14px;
    font-weight: 500;
    color: #43b02a;
    text-decoration: none;
    font-family: "Poppins", Arial, sans-serif;
}

.single-casino-comment__reply-link:hover {
    text-decoration: underline;
}

.single-casino-comments__form-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    overflow: hidden;
}

.single-casino-comments__form-group--comment {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.single-casino-comments__form-group--comment .single-casino-comments__form-label {
    padding: 16px 16px 8px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.single-casino-comments__form-group--comment .single-casino-comments__form-textarea {
    padding: 16px;
    border: none;
    border-radius: 0;
    margin: 0;
}

.single-casino-comments__form-title {
    font-size: 28px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 16px;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.2;
}

.single-casino-comments__form {
    margin-top: 24px;
}

.single-casino-comments__form-group {
    margin-bottom: 24px;
}

.single-casino-comments__form-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #0b1324;
    margin-bottom: 8px;
    font-family: "Poppins", Arial, sans-serif;
}

.single-casino-comments__form-label .required {
    color: #f44336;
}

.single-casino-comments__form-input,
.single-casino-comments__form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: "Poppins", Arial, sans-serif;
    color: #0b1324;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.single-casino-comments__form-input:focus,
.single-casino-comments__form-textarea:focus {
    outline: none;
    border-color: #43b02a;
}

.single-casino-comments__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.single-casino-comments__form-group--comment .single-casino-comments__form-textarea {
    padding: 16px;
    border: none;
    border-radius: 0;
    margin: 0;
}

.single-casino-comments__form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.single-casino-comments__form-checkbox input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
}

.single-casino-comments__form-checkbox-label {
    font-size: 14px;
    color: #6b7280;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
}

.single-casino-comments__form-submit {
    margin-top: 24px;
}

.single-casino-comments__form-button {
    display: inline-block;
    padding: 14px 32px;
    background: #43b02a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.single-casino-comments__form-button:hover {
    background: #3aa326;
}

.single-casino-comments__form-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 176, 42, 0.2);
}

@media (max-width: 767px) {
    .single-casino-comment__article {
        flex-direction: column;
    }
    
    .single-casino-comments__form-wrapper {
        padding: 24px;
    }
    
    .single-casino-comments__title,
    .single-casino-comments__form-title {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .single-casino-comments__form-wrapper {
        padding: 20px;
    }
    
    .single-casino-comments__title,
    .single-casino-comments__form-title {
        font-size: 22px;
    }
}

/* ============================================
   Sidebar Widgets (used in single-game, single-bonus)
   ============================================ */

/* Pros Widget */
.single-game-pros {
    margin-bottom: 0;
}

.single-game-pros__title {
    font-size: 20px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 20px;
    font-family: "Poppins", Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.single-game-pros__title::before {
    content: '+';
    font-size: 24px;
    color: #43b02a;
    font-weight: 700;
}

.single-game-pros__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-game-pros__list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    font-family: "Poppins", Arial, sans-serif;
}

.single-game-pros__list li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #43b02a;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

/* Cons Widget */
.single-game-cons {
    margin-bottom: 0;
}

.single-game-cons__title {
    font-size: 20px;
    font-weight: 700;
    color: #0b1324;
    margin: 0 0 20px;
    font-family: "Poppins", Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.single-game-cons__title::before {
    content: '−';
    font-size: 24px;
    color: #ff6b6b;
    font-weight: 700;
}

.single-game-cons__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-game-cons__list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    font-family: "Poppins", Arial, sans-serif;
}

.single-game-cons__list li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

/* Popular Widget */
.single-game-popular {
    margin-bottom: 0;
}

.single-game-popular__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.single-game-popular__item {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: visible;
    gap: 0;
}

.single-game-popular__image {
    flex-shrink: 0;
    width: 33.33%;
    min-height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-radius: 10px 0 0 10px;
}

.single-game-popular__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.single-game-popular__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    min-width: 0;
    background: #ffffff;
    overflow: visible;
}

.single-game-popular__item-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.4;
}

.single-game-popular__item-title a {
    color: #0b1324;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-game-popular__item-title a:hover {
    color: #43b02a;
}

.single-game-popular__play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    align-self: flex-start;
    margin-bottom: 8px;
}

.single-game-popular__play-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #43b02a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.single-game-popular__play-icon svg {
    width: 16px;
    height: 16px;
}

.single-game-popular__play-text {
    color: #43b02a;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Poppins", Arial, sans-serif;
}

.single-game-popular__play-btn:hover .single-game-popular__play-icon {
    background: #3aa326;
}

.single-game-popular__play-btn:hover .single-game-popular__play-text {
    color: #3aa326;
}

.single-game-popular__terms {
    font-size: 12px;
    color: #6b7280;
    font-family: "Poppins", Arial, sans-serif;
    position: relative;
    cursor: help;
    display: inline-block;
    z-index: 10;
}

/* Shared styles for Popular sidebar tooltips (games, bonuses, casinos, bookmakers) */
.single-game-popular__terms-tooltip,
.single-casino-popular__terms-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #0b1324;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    width: 250px;
    max-width: min(250px, calc(100vw - 40px));
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-family: "Poppins", Arial, sans-serif;
}

.single-game-popular__terms-tooltip::after,
.single-casino-popular__terms-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0b1324;
    margin-top: -1px;
}

.single-game-popular__terms:hover .single-game-popular__terms-tooltip,
.single-casino-popular__terms:hover .single-casino-popular__terms-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Recent News Widget */
.single-game-news {
    margin-bottom: 0;
}

.single-game-news__list,
.single-game-recent-news {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.single-game-news__item,
.single-game-recent-news__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-game-news__image,
.single-game-recent-news__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: block;
    aspect-ratio: 16 / 9;
}

.single-game-news__image img,
.single-game-recent-news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-game-news__content,
.single-game-recent-news__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.single-game-news__item-title,
.single-game-recent-news__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.4;
}

.single-game-news__item-title a,
.single-game-recent-news__title a {
    color: #0b1324;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-game-news__item-title a:hover,
.single-game-recent-news__title a:hover {
    color: #43b02a;
}

.single-game-news__meta,
.single-game-recent-news__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    font-family: "Poppins", Arial, sans-serif;
}

.single-game-news__author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
}

.single-game-news__author:hover {
    color: #43b02a;
}

.single-game-news__author i {
    font-size: 12px;
}

.single-game-news__comments,
.single-game-recent-news__comments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
}

.single-game-news__comments i,
.single-game-recent-news__comments i {
    font-size: 12px;
}

/* Excerpt specific to recent-news */
.single-game-recent-news__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    font-family: "Poppins", Arial, sans-serif;
    margin: 0;
}

/* Author specific differences */
.single-game-recent-news__author {
    color: #6b7280;
    font-family: "Poppins", Arial, sans-serif;
}

/* Mobile styles for Popular sidebar tooltips */
@media (max-width: 575px) {
    .single-game-popular__terms-tooltip,
    .single-casino-popular__terms-tooltip {
        left: auto;
        right: 0;
        width: min(250px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
    }
    
    .single-game-popular__terms-tooltip::after,
    .single-casino-popular__terms-tooltip::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

