/**
 * L1 Vita - Global Styles
 * Custom styles to complement Tailwind CSS
 */

/* ===========================
   Base Styles
   =========================== */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.2;
}

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* ===========================
   Hero Section
   =========================== */

.hero-gradient {
    background: linear-gradient(
        135deg,
        rgba(13, 115, 119, 0.9) 0%,
        rgba(13, 115, 119, 0.7) 50%,
        rgba(167, 196, 188, 0.8) 100%
    );
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===========================
   Cards
   =========================== */

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.card-image {
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* ===========================
   Buttons
   =========================== */

.btn-primary {
    background-color: #0D7377;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0A5C5F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

.btn-outline {
    border: 2px solid #0D7377;
    color: #0D7377;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
}

.btn-outline:hover {
    background-color: #0D7377;
    color: white;
}

/* ===========================
   Forms
   =========================== */

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #0D7377;
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2D3436;
}

/* ===========================
   Article Styles
   =========================== */

.article-content {
    max-width: 720px;
    margin: 0 auto;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D3436;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

/* ===========================
   Category Tags
   =========================== */

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #E6F3F3;
    color: #0D7377;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

/* ===========================
   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;
}

/* ===========================
   Page-specific
   =========================== */

/* Privacy Policy / About - better readability */
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3436;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* ===========================
   Responsive Adjustments
   =========================== */

@media (max-width: 640px) {
    .article-content p,
    .article-content li {
        font-size: 1rem;
    }
}
