@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom utility class for heading font - Bold typography for headings */
.font-heading {
    font-family: 'Montserrat', 'Inter', 'Cairo', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700; /* Bold weight for headings */
}

/* Additional utility classes for dark theme consistency */
.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;
}

/* Pagination Styling: Dark theme for Laravel pagination links */
.pagination {
    @apply flex justify-center items-center space-x-2;
}

.pagination > * {
    @apply px-4 py-2 rounded-lg transition-colors;
}

.pagination a {
    @apply bg-[#1a1a1a] text-[#E0E0E0] border border-gray-800 hover:bg-[#00B4D8] hover:text-white hover:border-[#00B4D8];
}

.pagination span {
    @apply bg-[#00B4D8] text-white border border-[#00B4D8] cursor-default;
}

.pagination .disabled {
    @apply bg-gray-800 text-gray-600 border-gray-800 cursor-not-allowed opacity-50;
}

/* Flash Message Animation: Fade in effect */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Ensure HTML content renders properly in blog posts */
.prose {
    color: #E0E0E0;
}

.prose h2 {
    color: #E0E0E0;
    font-weight: 700;
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.prose h3 {
    color: #E0E0E0;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.prose ul,
.prose ol {
    color: #E0E0E0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    color: #E0E0E0;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.prose p {
    color: #E0E0E0;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.prose a {
    color: #00B4D8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #00B4D8;
    opacity: 0.8;
}

/* CTA Section Styling */
.prose .cta-section {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    padding: 2rem;
    background: rgba(0, 180, 216, 0.1);
    border: 2px solid #00B4D8;
    border-radius: 0.5rem;
    text-align: center;
}

.prose .cta-section h2 {
    color: #00B4D8 !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.prose .cta-section a {
    display: inline-block;
    padding: 1rem 2rem;
    background: #00B4D8;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.prose .cta-section a:hover {
    background: #0099b8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
    opacity: 1;
}
