/* Admin styles for FBT Bricks Templates */

h4{
    font-size: 17px;
    line-height: 2;
}

/* Mixed templates container */
.mixed-templates-container {
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
}

/* Template row styling */
.template-row {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.template-row:last-child {
    border-bottom: none;
}

.row-label {
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.free-badge {
    background-color: #4CAF50;
}

.premium-badge {
    background-color: #2196F3;
}

/* Template grid layout - 3 columns in a single row */
.template-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    justify-content: flex-start;
}

/* Template card styling */
.template-grid .template-card {
    flex: 0 0 calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Template card header */
.template-card-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.template-card-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    text-align: center;
}

/* Template card image */
.template-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: block;
    width: 100%;
}

.template-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-height: 250px;
}

/* Template card actions */
.template-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-card-actions {
    opacity: 1;
}

.template-card-actions .button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
}

.template-card-actions .button:hover {
    background-color: #0b7dda;
}

/* Make the entire card clickable */
.template-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}


.template-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 1;
}

.template-badge.free {
    background: #4CAF50;
}

.template-badge.premium {
    background: #FF6B6B;
}

