/**
 * Vitajod - Main Stylesheet
 * This file contains all custom styles for frontend and admin
 */

/* ==========================================================================
   Alpine.js
   ========================================================================== */
[x-cloak] { display: none !important; }

/* ==========================================================================
   Prose styling (article content)
   ========================================================================== */
.prose img {
    border-radius: 0.5rem;
}

.prose a {
    color: #059669;
}

.prose a:hover {
    color: #047857;
}

.prose p {
    margin: 1rem 0;
    color: #4b5563;
    line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #047857;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Home page - keep original green */
.prose-home h1,
.prose-home h2,
.prose-home h3,
.prose-home h4,
.prose-home h5,
.prose-home h6 {
    color: #059669;
}

/* ==========================================================================
   Product Modal
   ========================================================================== */
.product-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
}

.product-modal.active {
    display: flex;
}

.product-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.product-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    max-width: 48rem;
    width: 100%;
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.prose h1 {
    font-size: 2rem;
}

.prose h2 {
    font-size: 1.25rem;
}

.prose h3 {
    font-size: 1.125rem;
}

.prose h4,
.prose h5,
.prose h6 {
    font-size: 1rem;
}

/* Lists */
.prose ul,
.prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin: 0.5rem 0;
    color: #4b5563;
}

/* Horizontal rule */
.prose hr {
    border: none;
    border-top: 2px solid #059669;
    margin: 2rem 0;
    opacity: 0.3;
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin: 0.5rem 0;
}

/* ==========================================================================
   Line clamp utilities
   ========================================================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Admin - Media browsers
   ========================================================================== */
.image-item:hover,
.media-item:hover {
    transform: scale(1.05);
}

.image-item.selected {
    outline: 3px solid #059669;
}

/* ==========================================================================
   Two-columns layout
   ========================================================================== */
.prose .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.prose .two-columns .column {
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .prose .two-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
