/* ==========================================================================
   OnlineSportManagers.com - Modern Design System
   ========================================================================== */

:root {
    --color-bg: #f8fafc;
    --color-card-bg: #ffffff;
    --color-header-bg: #0f172a;
    --color-topbar-bg: #1e293b;
    --color-text-main: #334155;
    --color-text-heading: #0f172a;
    --color-text-muted: #64748b;
    
    --color-primary: #1e293b;
    --color-accent: #dc2626;      /* High contrast Red */
    --color-accent-hover: #b91c1c;
    --color-teal: #0d9488;
    --color-border: #e2e8f0;
    --color-star: #f59e0b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Oswald', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #334155;
    color: #ffffff;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
}
.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}
.btn-outline:hover {
    background: #f1f5f9;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-facebook {
    background-color: #1877f2;
    color: #ffffff;
}
.btn-facebook:hover {
    background-color: #166fe5;
    color: #ffffff;
}

/* Top Bar */
.top-bar {
    background-color: var(--color-topbar-bg);
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.login-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form-inline input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    width: 110px;
}

.login-form-inline input::placeholder {
    color: #94a3b8;
}

/* Main Header */
.main-header {
    background-color: var(--color-header-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.main-nav a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.search-form input {
    background: transparent;
    border: none;
    color: #ffffff;
    outline: none;
    padding: 4px;
    font-size: 13px;
    width: 140px;
}

.search-form button {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 40%, rgba(15, 23, 42, 0.4) 70%), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #ffffff;
    padding: 50px 0 45px 0;
    border-bottom: 4px solid var(--color-accent);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-content p {
    color: #94a3b8;
    max-width: 650px;
    margin-bottom: 25px;
    font-size: 16px;
}

.hero-sports-filter {
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}

.filter-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.sports-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sport-pill {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.sport-pill:hover,
.sport-pill.active {
    background: var(--color-accent);
    color: #ffffff;
}

/* Layout Grid */
.main-content-wrapper {
    padding: 35px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Featured Article Card */
.featured-article-card {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 35px;
    position: relative;
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.featured-image-holder img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.featured-article-body {
    padding: 24px;
}

.meta-info {
    font-size: 13px;
    color: var(--color-text-muted);
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.featured-article-body h2 {
    font-size: 22px;
    color: var(--color-text-heading);
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-article-body p {
    color: var(--color-text-main);
    margin-bottom: 18px;
}

/* Section Blocks */
.section-block {
    margin-bottom: 35px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text-heading);
    letter-spacing: 0.5px;
}

.see-all-link {
    font-size: 13px;
    font-weight: 600;
}

/* Top Games List */
.top-games-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.game-card.rank-1 {
    border-left: 4px solid #f59e0b;
}

.game-rank {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-muted);
    width: 30px;
    text-align: center;
}

.game-card.rank-1 .game-rank {
    color: #f59e0b;
}

.game-icon img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.game-details {
    flex-grow: 1;
}

.game-details h3 {
    font-size: 17px;
    margin-bottom: 4px;
}

.game-details h3 a {
    color: var(--color-text-heading);
}

.game-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.tag {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.tag-free {
    background: #dcfce7;
    color: #15803d;
}

.game-rating {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: var(--color-star);
}

.score {
    font-weight: 700;
    color: var(--color-text-heading);
}

.votes {
    color: var(--color-text-muted);
    font-size: 12px;
}

.game-actions {
    display: flex;
    gap: 8px;
}

/* Articles Mini Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.article-mini-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 16px;
    border-radius: var(--radius-md);
}

.article-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.article-mini-card h3 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-mini-card h3 a {
    color: var(--color-text-heading);
}

.article-mini-card p {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-text-heading);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.featured-game-box {
    text-align: center;
}

.featured-game-badge {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 6px;
}

.sport-type {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.rating-box {
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.score-num {
    display: block;
    font-weight: 800;
    font-size: 18px;
}

.top-ranking-list {
    padding-left: 20px;
}

.top-ranking-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--color-border);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.top-ranking-list li:last-child {
    border-bottom: none;
}

.top-ranking-list a {
    color: var(--color-text-heading);
    font-weight: 500;
}

.badge-score {
    font-weight: 700;
    color: var(--color-teal);
    font-size: 12px;
}

/* Ad Widget */
.widget-ad {
    text-align: center;
    background: #f1f5f9;
}

.ad-label {
    font-size: 10px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    color: #94a3b8;
    border-radius: var(--radius-sm);
}

/* Footer */
.main-footer {
    background-color: var(--color-header-bg);
    color: #94a3b8;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--color-accent);
}

.footer-bottom {
    background: #090d16;
    padding: 18px 0;
    font-size: 13px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.show {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        padding-top: 15px;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
    }

    .game-actions {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .top-bar-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Recommended Games Section */
.recommended-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.recommended-game-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recommended-game-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pomer strán loga 4:3 */
.recommended-game-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.recommended-game-card h4 {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 2px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
    word-break: break-word;
}

.recommended-game-card h4 a {
    color: var(--color-text-heading);
}

.recommended-rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.recommended-stars {
    color: var(--color-star, #f59e0b);
    font-size: 13px;
    letter-spacing: 1px;
}

.recommended-score-text {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.recommended-games-grid {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 992px) {
    .recommended-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .recommended-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Featured Game Sidebar Widget Styling */
.featured-game-box {
    text-align: center;
}

.featured-game-logo {
    width: 200px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 auto 10px auto;
    border-radius: var(--radius-sm);
}

.featured-game-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-heading);
}

.featured-game-empty {
    font-size: 13px; 
    color: var(--color-text-muted); 
    text-align: center;
}

.widget-ad {
    text-align: center;
    overflow: hidden;
}

.ad-label {
    font-size: 10px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.ad-container {
    background: #f8fafc;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    display: block;
    width: 100%;
    min-height: 250px;    
}

.article-detail-container {
    font-size: 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
}

.breadcrumb-nav {
    font-size: 15px;
    margin: 18px 15px 10px 15px;
}
.article-detail-container p {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}

.article-detail-container table {
    margin: 18px 0 10px 0;
    border-collapse: collapse;
    border-spacing: 0;    
}
.article-detail-container table tr:hover {
    background: #d8dadc!important;
}
.article-detail-container table tr:nth-child(even) {
  background: #e8eaec;
}
.article-detail-container table td {
    padding: 5px;
}

.article-detail-container td a {
    font-size: 20px;
    font-weight: bold;
}

.article-detail-container h1 {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}
.article-detail-container h2 {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}
.article-detail-container h3 {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}
.article-detail-container h4 {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}
.article-detail-container ul {
    margin: 15px 0 20px 20px;
    padding-left: 20px;
    list-style-type: disc;
}
.article-detail-container ol {
    margin: 15px 0 20px 20px;
    padding-left: 20px;
    list-style-type: decimal;
}

.article-detail-container ol li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--color-text, #334155);
}

.article-detail-container li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--color-text, #334155);
}

.article-detail-container .meta-info {
    margin: 18px 15px 10px 15px;
}

.article-detail-container .article-thumb {
    margin: 10px 0 10px 0;
    text-align: center;
}

.article-detail-container .article-thumb .game-logo {
    max-width: 320px;
}

.article-detail-container .article-thumb img {
    width: 100%;
    max-height: 75%;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;    
}
.article-footer-share {
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid var(--color-border);
}
.share-buttons {
    margin: 18px 15px 10px 15px;
}
.article-detail-container .article-in-content-ad {
    margin: 18px 15px 10px 15px;
    text-align: center;
    overflow: hidden;
    min-height: 250px;
}
/* Articles List & Grid Styles */
.news-list-container {
    width: 100%;
}

.news-page-header {
    margin-bottom: 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;  
}

.news-page-header h1 {
    margin: 0px 15px 0px 15px;
}
.news-page-header .page-subtitle {
    color: var(--color-text-muted);
    margin-top: 5px;
    margin: 0px 15px 10px 15px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.news-card .news-thumb-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #DDE4F0;
    position: relative;
}

.news-card .news-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumb-link img {
    transform: scale(1.03);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-body .meta-info {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-card-body h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.news-card-body h3 a:hover {
    color: var(--color-primary, #0066cc);
}

.news-card-body .news-snippet {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.no-news-found {
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-muted);
}

/* Pagination Navigation Styles */
.pagination-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text, #1e293b);
    background: var(--color-bg-card, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-link:hover {
    background-color: var(--color-bg-hover, #f8fafc);
    border-color: var(--color-primary, #0066cc);
    color: var(--color-primary, #0066cc);
}

.pagination-link.active {
    background-color: var(--color-primary, #0066cc);
    border-color: var(--color-primary, #0066cc);
    color: #fff;
}

.all-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .all-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .all-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.recommended-game-card h4 {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 2px;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Game Profile Box Styles */
.game-profile-container {
    font-size: 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
}
.game-profile-container h1 {
    line-height: 1.2;
}
.game-profile-container .game-body-content {
    line-height: 1.4;
}
.game-profile-container h2 {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}
.game-profile-container p {
    line-height: 1.4;
    margin: 18px 15px 10px 15px;
}
.game-profile-container .article-in-content-ad {
    margin: 18px 15px 10px 15px;
    text-align: center;
    overflow: hidden;
    min-height: 250px;
}
.game-footer-share {
    margin-top: 40px; 
    padding-top: 20px; 
    border-top: 1px solid var(--color-border);
}
.game-footer-share p {
    margin: 18px 15px 10px 15px;
}

.game-profile-box {
    background: var(--color-bg-card, #f9fbfd);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.game-profile-box h2 {
    margin: 0px 0px 10px 0px;
}

.game-profile-box .profile-flex-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.game-profile-box .game-profile-logo {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.game-profile-box .game-profile-logo img {
    width: 240px;
    height: auto;
    display: block;
}

.game-profile-box .profile-info-content {
    flex: 1;
    min-width: 250px;
}

.game-profile-box .profile-row-sport,
.game-profile-box .profile-row-rating {
    font-size: 15px;
}

.game-profile-box .rating-percentage {
    color: #2b6cb0;
    font-weight: bold;
}

.game-profile-box .profile-stars {
    font-size: 40px;
    color: var(--color-star);
    letter-spacing: 2px;
    line-height: 0.7;
    margin-bottom: 6px;
}

.game-profile-box .profile-rate-section {
    font-size: 14px;
    margin-bottom: 15px;
}

.game-profile-box .profile-rate-section .rate-title {
    font-weight: 500;
    margin-right: 5px;
}

.game-profile-box .profile-rate-section a {
    color: #e53e3e;
    text-decoration: none;
    font-weight: 600;
    margin: 0 3px;
}
.game-profile-box .profile-play-section {
    text-align: center;
}
.game-profile-box .btn-play-action {
    background-color: #e53e3e;
    color: #fff;
    padding: 10px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-profile-box .btn-unavailable-action {
    background-color: #cbd5e0;
    color: #4a5568;
    padding: 10px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 30px;
    display: inline-block;
    font-size: 16px;
    cursor: not-allowed;
}

/* Pridajte tieto pravidlá do svojho CSS súboru */

.screenshots-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Zarovnanie zoznamu screenshotov na stred */
    gap: 15px;
    margin-top: 15px;
}

.screenshots-gallery a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px; /* Pevný štvorcový rámik */
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--color-border, #ddd);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.screenshots-gallery img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Zabezpečí, že obrázok si zachová svoje reálne rozmery bez orezania, pričom sa zmestí do štvorca */
    display: block;
    transition: transform 0.2s ease;
}

.screenshots-gallery a:hover img {
    transform: scale(1.03); /* Jemné priblíženie pri prejdení myšou */
}

/* Review Blue Box Styles */
.game-profile-box.review-blue-box {
    background: #ebf8ff;
    padding: 20px;
    margin-top: 30px;
}

.game-profile-box.review-blue-box h2 {
    margin-top: 0;
    color: #2b6cb0;
    padding-bottom: 8px;
}

.reviews-list {
    margin-top: 15px;
}

.review-item {
    padding: 4px 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.review-header a {
    font-size: 17px;
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
}

.review-date {
    font-size: 12px;
    color: #4a5568;
}

.review-intro {
    font-size: 14px;
    color: #2d3748;
    margin-top: 6px;
}

.review-ratings-row {
    margin-top: 12px;
    font-size: 13px;
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #bee3f8;
}

.review-overall-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-metrics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    color: #2d3748;
}
.review-stars {
    font-size: 26px;
    color: var(--color-star);
    letter-spacing: 2px;
    line-height: 0.7;
}

.game-article-list {
    margin-top: 15px;
}

.game-article-item {
    padding: 4px 10px;
}
.game-article-item:nth-child(2n + 1) {
    background-color: #f0f1f2; /* Light gray */
}

.game-article-item:nth-child(2n + 2) {
    background-color: #ffffff; /* White */
}

.game-article-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.game-article-header a {
    font-size: 17px;
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
}

.game-article-date {
    font-size: 12px;
    color: #4a5568;
}

.game-article-intro {
    font-size: 14px;
    color: #2d3748;
    margin-top: 6px;
}


.reviews-list-item {
    background: #ebf8ff;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #b2e0ff; /* Pridaný jemný svetlomodrý border */
}
.review-article-item {
    background: #ebf8ff;
    padding: 15px;
}
.review-article-item .review-ratings-row {
    margin-top: 0px;
}

.tool-area {
    margin-bottom: 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    padding: 15px;
    font-size: 14px;
    position: relative;  
}
