/* Main Wrapper - Compact */
.all-games-block-wrapper {
    margin: 15px 0;
}

.all-games-block {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.all-games-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card Container - Two Column Layout */
.game-card-container {
    display: flex;
    gap: 0;
    align-items: stretch;
}

/* Image Section - 45% */
.game-image-section {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.game-image-wrapper {
    width: 100%;
    height: 100%;
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

/* Content Section - 55% Compact */
.game-content-section {
    flex: 0 0 55%;
    padding: 0px 14px;
    display: flex;
    flex-direction: column;
    background: #FEFDFB;
}

/* Title Compact */
.game-title {
    margin: 0 0 8px 0;
    color: #1a1a1a !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* Description Compact */
.game-description {
    margin: 0 0 12px 0;
    color: #4a5568;
    line-height: 1.5;
    font-size: 14px;
}

/* Meta Grid - 2x2 Layout Compact */
.game-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.meta-icon {
    width: 18px;
    height: 18px;
    color: #B4061F;
    flex-shrink: 0;
    margin-top: 2px;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.meta-label {
    font-size: 10px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-value {
    font-size: 13px;
    color: #2d3748;
    font-weight: 600;
}

/* Action Buttons Compact */
.game-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 140px;
    letter-spacing: 0.2px;
}

.btn-primary {
    background-color: #B4061F;
    color: #ffffff;
    border: 2px solid #B4061F;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #B4061F;
    border: 2px solid #B4061F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 6, 31, 0.25);
    text-decoration: none;
}

.btn-secondary {
    background-color: #ffffff;
    color: #B4061F;
    border: 2px solid #B4061F;
}

.btn-secondary:hover {
    background-color: #B4061F;
    color: #ffffff;
    border: 2px solid #B4061F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 6, 31, 0.25);
}

.game-action-buttons {
    display: flex;
    justify-content: space-between; /* push buttons to edges */
    gap: 10px; /* space between buttons */
    margin-top: 12px;
}

.game-action-buttons a,
.game-action-buttons button {
    flex: 1; /* both buttons grow equally */
}

/* Optional: prevent gap from shrinking buttons too much */
.game-action-buttons a {
    margin-right: 5px; /* half of gap */
}

.game-action-buttons button {
    margin-left: 5px; /* half of gap */
}

/* Make card container flex and stretch children */
.game-card-container {
    display: flex;
    gap: 0;
    align-items: stretch; /* stretch children to same height */
}

/* Image Section - allow height to grow with content */
.game-image-section {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
}

/* Apply Inter font to the entire game card */
.all-games-block,
.all-games-block * {
    font-family: 'Inter', sans-serif !important;
}

/* Editor styles */
.all-games-block-editor {
    background: #f0f0f1;
    border: 1px dashed #c3c4c7;
    padding: 20px;
    border-radius: 4px;
}

.all-games-block-editor h4 {
    margin-top: 0;
    color: #1d2327;
}

.all-games-block-editor .components-base-control {
    margin-bottom: 16px;
}

.post .wp-post-image {
/*         max-height: 300px; */
        border-radius: 10px;
    }

	.all-games-block {
		padding:0px;
background: #FAF0D7;
	}
.game-content-section {
    background: #FAF0D7;
}

/* FINAL FIX - force image to match content height */
.game-image-section {
    flex: 0 0 45%;
    display: flex;
}

.game-image-wrapper
 {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    border-radius: 10px;
}

.game-image-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}


.game-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    padding: 0px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}


/* Compact Meta Grid */
.game-meta-grid.compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-top: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
}

.meta-content {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.meta-label {
    font-size: 10px;
    color: #666;
}

.meta-value {
    font-size: 12px;
    font-weight: 600;
}

/* Reduce spacing */
.game-title {
    margin-bottom: 5px !important;
}

.game-description {
    margin-bottom: 4px !important;
    font-size: 14px !important;
	font-weight: 400 !important;
}


.game-meta-grid.compact {
    display: flex;
    gap: 15px 10px;
    margin-top: 10px;
 justify-content: space-between; 
}
.meta-label {
   
    display: none;
}



.game-meta-grid .meta-content {
  min-width: 0; /* IMPORTANT for flex items */
}

.game-meta-grid .meta-value {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}


.all-games-block {
    padding: 10px !important;
    margin: 15px 0px !important;
}







/* Tablet Responsive */
@media (max-width: 1024px) {
    .game-content-section {
        padding: 0px 14px;
    }

    .game-title {
        font-size: 24px;
    }

    .game-meta-grid {
        gap: 10px;
    }
	
    .game-image-wrapper {
    height: 200px;
}

}

/* Mobile Responsive - Vertical Card Layout */
@media (max-width: 768px) {
    .game-card-container {
        flex-direction: column;
    }
    
    .game-image-section,
    .game-content-section {
        flex: 1;
        width: 100%;
    }

    
    .game-content-section {
        padding: 10px 0px 0px 0px;
    }
    
    .game-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .game-description {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .game-meta-grid {
        gap: 10px;
    }

    .meta-label {
        font-size: 10px;
    }

    .meta-value {
        font-size: 12px;
    }
    
    .game-action-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .btn {
        width: 100%;
        min-width: 100%;
        padding: 11px 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .all-games-block-wrapper {
        margin: 12px 0;
    }

    .all-games-block {
        border-radius: 8px;
    }

    .game-content-section {
        padding: 10px 0px 0px 0px;
   
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .game-description {
        font-size: 13px;
    }
}

/* ✅ Responsive for mobile */
@media (max-width: 767px) {
    .game-action-buttons {
        flex-direction: column; /* stack buttons vertically */
    }

    .game-action-buttons a,
    .game-action-buttons button {
        width: 100%; /* make each full width */
    }
.game-action-buttons button {
    margin-left: 0px; /* half of gap */
}
 .game-image-wrapper {
    height: 200px !important;
}

}

