/* TinyMCE Content Layouts - Styles for rendered content */

/* Grid Layouts */
.grid-container {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dark .grid-item {
    background: #1f2937;
}

/* Gallery Layouts */
.gallery {
    display: grid;
    gap: 8px;
    margin: 24px 0;
}

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

.gallery-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

/* Cards */
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark .card {
    background: #1f2937;
    border-color: #374151;
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.dark .card-header {
    color: #f9fafb;
}

.card-body {
    color: #6b7280;
}

.dark .card-body {
    color: #9ca3af;
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #e00727;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
}

.highlight-box.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: #2563eb;
}

.highlight-box.success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left-color: #16a34a;
}

.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #d97706;
}

.highlight-box strong {
    color: inherit;
}

/* Two Columns Layout */
.two-columns {
    display: flex;
    gap: 32px;
    margin: 24px 0;
}

.two-columns > div {
    flex: 1;
}

/* Image with Caption */
.image-caption {
    text-align: center;
    margin: 24px 0;
}

.image-caption img {
    border-radius: 12px;
    max-width: 100%;
    height: auto;
}

.image-caption figcaption {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.dark .image-caption figcaption {
    color: #9ca3af;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.dark .feature-item {
    background: #1f2937;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: #e00727;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .gallery-3,
    .gallery-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-columns {
        flex-direction: column;
    }

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