/* ==========================================================================
   DataMindsLab - Global Enterprise Stylesheet
   ========================================================================== */

/* 1. Global Variables & Color Palette */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --teal-accent: #20c997;
    --dark-bg: #1e293b;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-family-base: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* 2. Reset & General Layout */
html, body {
    height: 100%;
    font-family: var(--font-family-base);
    color: #333333;
    background-color: var(--light-bg);
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* 3. Typography & Utility Classes */
.text-teal {
    color: var(--teal-accent) !important;
}

.line-height-lg {
    line-height: 1.8;
}

/* Text Truncation / Line Clamp */
.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;
}

/* 4. E-Book Cards Component */
.ebook-card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #ffffff;
    overflow: hidden;
}

.ebook-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

/* E-Book Cover Image Handling */
.ebook-cover-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.ebook-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.ebook-card:hover .ebook-cover {
    transform: scale(1.03);
}

/* 5. Custom Buttons & Interactivity */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

/* 6. Checkout & Details Page Enhancements */
.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.badge-tag {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* 7. Responsive Adjustments */
@media (max-width: 768px) {
    .ebook-cover-wrapper {
        height: 200px;
    }
}