/*--primary-color: #6366f1;
            --secondary-color: #8b5cf6;
            --accent-color: #06b6d4;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --bg-light: #f8fafc;*/
        
        :root {
            --primary-color: 45 79% 30%;
            --secondary-color: 222 47% 16%;
            --accent-color: 14 76% 61%;
            --text-dark: 222 47% 16%;
            --text-light: #6b7280;
            --bg-light: 60 4.8% 95.9%;
                --primary-color-hex: #4d3d10;
    --primary-light-hex: #6b5423;
    --accent-color-hex: #f59e0b;
    --accent-light-hex: #fbbf24;
            --background: 0 0% 100%;--foreground: 222 47% 11%;--primary: 45 79% 30%;--primary-foreground: 210 40% 98%;--secondary: 222 47% 16%;--secondary-foreground: 210 40% 98%;--accent: 14 76% 61%;--accent-foreground: 210 40% 98%;--muted: 60 4.8% 95.9%;--muted-foreground: 25 5.3% 44.7%;--card: 0 0% 100%;--card-foreground: 222 47% 11%;--popover: 0 0% 100%;--popover-foreground: 222 47% 11%;--border: 20 5.9% 90%;--input: 20 5.9% 90%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 60 9.1% 97.8%;--ring: 45 79% 30%;--radius: .5rem;--chart-1: 14 76% 61%;--chart-2: 45 79% 30%;--chart-3: 222 47% 16%;--chart-4: 209 90% 54%;--chart-5: 120 79% 30%;--sidebar-background: 222 47% 16%;--sidebar-foreground: 210 40% 98%;--sidebar-primary: 45 79% 30%;--sidebar-primary-foreground: 210 40% 98%;--sidebar-accent: 14 76% 61%;--sidebar-accent-foreground: 210 40% 98%;--sidebar-border: 215 27.9% 25%;--sidebar-ring: 214 31.8% 50%}.dark{--background: 222 47% 11%;--foreground: 213 31% 91%;--primary: 45 79% 40%;--primary-foreground: 222 47% 11%;--secondary: 222 47% 25%;--secondary-foreground: 210 40% 98%;--accent: 14 76% 66%;--accent-foreground: 222 47% 11%;--muted: 223 47% 20%;--muted-foreground: 215 20.2% 65.1%;--card: 222 47% 11%;--card-foreground: 213 31% 91%;--popover: 222 47% 11%;--popover-foreground: 215 20.2% 65.1%;--border: 216 34% 17%;--input: 216 34% 17%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--ring: 45 79% 40%;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: hsl(var(--text-dark));
        }
        h1, h2, h3, h4, h5, h6 {
    font-family: Merriweather, serif;
}
        .text-primary {
            color: hsl(var(--primary)) !important;
        }
        .text-accent {
            color: hsl(var(--accent));
        }
        .nav-link:hover {
            color: hsl(var(--primary)) !important;
        }
        .navbar-brand, .navbar-brand a {
            font-weight: 700;
            font-size: 1.5rem;
            background: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            color: hsl(var(--primary)) !important;
        }
        .bg-light {
            background: hsl(var(--bg-light));
        }
        .bg-primary{
            background-color:hsl(var(--primary)) !important;
            color: hsl(var(--background));
        }
        .bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}
        .bg-secondary{
            background-color:hsl(var(--secondary)) !important;
        }
        .bg-muted {
            background-color: hsl(var(--muted));
        }
        .bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color-hex) 0%, var(--primary-light-hex) 100%);
}
        .btn-outline-primary {
            background-color:hsl(var(--background));
            color: hsl(var(--text-dark));
            border-color:hsl(var(--input));
        }
        .btn-outline-primary:hover {
            background-color:hsl(var(--accent));
            border-color:hsl(var(--input));
        }
        .btn-outline-secondary {
            background-color:hsl(var(--background))/0;
            color: hsl(var(--text-dark));
            border-color:hsl(var(--input));
        }
        .btn-outline-secondary:hover {
            background-color:hsl(var(--background));
            color: hsl(var(--text-dark));
            border-color:hsl(var(--input));
        }
        .btn-primary {
            background: hsl(var(--primary-color));
            border: none;
            font-weight: 500;
        }
        
        .btn-primary:hover {
            background: hsl(var(--primary-color)/.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }
        .btn-secondary {
            background: hsl(var(--secondary-color));
            border: none;
            font-weight: 500;
        }
        
        .btn-secondary:hover {
            background: hsl(var(--secondary-color)/.9);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }
        
        .hero-section {
            background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
            padding: 4rem 0;
        }
        
        .card {
            border: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: static;
        }
        
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .story-card {
            cursor: pointer;
        }
        
        .badge-story { background-color: #10b981; }
        .badge-book { background-color: #f59e0b; }
        .badge-script { background-color: #8b5cf6; }
        .badge-comic { background-color: #ef4444; }
        
        .footer {
            background-color: hsl(var(--text-dark));
            color: white;
            margin-top: auto;
        }
        
        .content-editor {
            min-height: 300px;
            border: 1px solid #d1d5db;
            border-radius: 0.375rem;
            padding: 1rem;
        }
        .w-4 {
            width: 1rem;
        }
        .h-4 {
            height: 1rem;
        }
        .w-5 {
            width: 1.25rem;
        }.h-5 {
            height: 1.25rem;
        }
        .w-6 {
            width: 1.5rem;
        }.h-6 {
            height: 1.5rem;
        }
        .rounded-full {
            border-radius: 9999px;
        }
                .justify-center {
            justify-content: center;
        }
                .items-center {
            align-items: center;
        }
        .list-group {
            
        }
        .sticky-top {
            /*z-index: 0;*/
        }
/* Book Cover Styling */
.book-item {
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
    padding:15px;
    background-color: hsl(var(--muted));
}

.book-cover-container {
    margin-bottom: 1rem;
}

.book-cover {
    position: relative;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}
.book-cover-big {
    position: relative;
    width: 100%;
    /*max-width: 120px;*/
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-cover:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.book-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.book-image-big {
    width: 100%;
    /*height: 160px;*/
    object-fit: cover;
    display: block;
}

.book-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, hsl(var(--text-dark) / .99), hsl(var(--text-dark) / .4));/*222 47% 16%*/
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-align: center;
}

.book-title {
    font-size: 0.75rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    hyphens: auto;
}
.book-title-big {
    /*font-size: 0.75rem;*/
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    hyphens: auto;
}

.genre-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    margin: 0.3rem;
    border-radius: 8px;
    z-index: 10;
}

.book-info {
    padding: 0 0.5rem;
}

.book-title-text {
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    min-height: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-title-text a:hover {
    color: #0d6efd !important;
}

.book-author, .book-category {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}

.book-tags {
    margin-bottom: 0.5rem;
}

.tag-small {
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
    margin: 0.1rem;
    border-radius: 6px;
}

.book-stats {
    font-size: 0.65rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .book-cover {
        max-width: 100px;
    }

    .book-image {
        height: 140px;
    }

    .book-title {
        font-size: 0.7rem;
    }
}

@media (min-width: 1400px) {
    .book-cover {
        max-width: 140px;
    }

    .book-image {
        height: 180px;
    }
}

/* Hover effects */
.book-item .book-cover-container:hover .book-title-overlay {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.5));
}

.book-item:hover .book-title-text a {
    color: #0d6efd !important;
}
/* Size Variations */
        .books-grid.size-small .book-cover {
            max-width: 80px;
        }
        .books-grid.size-small .book-image {
            height: 120px;
        }
        .books-grid.size-small .book-title {
            font-size: 0.65rem;
        }
        .books-grid.size-small .book-title-text {
            font-size: 0.75rem;
            min-height: 1.8rem;
        }
        .books-grid.size-small .book-author,
        .books-grid.size-small .book-category {
            font-size: 0.6rem;
        }
        .books-grid.size-small .tag-small {
            font-size: 0.55rem;
            padding: 0.1rem 0.25rem;
        }
        .books-grid.size-small .book-stats {
            font-size: 0.6rem;
        }

        .books-grid.size-medium .book-cover {
            max-width: 120px;
        }
        .books-grid.size-medium .book-image {
            height: 160px;
        }

        .books-grid.size-large .book-cover {
            max-width: 160px;
        }
        .books-grid.size-large .book-image {
            height: 220px;
        }
        .books-grid.size-large .book-title {
            font-size: 0.9rem;
        }
        .books-grid.size-large .book-title-text {
            font-size: 1rem;
            min-height: 2.8rem;
        }
        .books-grid.size-large .book-author,
        .books-grid.size-large .book-category {
            font-size: 0.8rem;
        }
        .books-grid.size-large .tag-small {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }
        .books-grid.size-large .book-stats {
            font-size: 0.75rem;
        }

        .books-grid.size-extra-large .book-cover {
            max-width: 200px;
        }
        .books-grid.size-extra-large .book-image {
            height: 280px;
        }
        .books-grid.size-extra-large .book-title {
            font-size: 1rem;
            padding: 1rem;
        }
        .books-grid.size-extra-large .book-title-text {
            font-size: 1.1rem;
            min-height: 3.2rem;
        }
        .books-grid.size-extra-large .book-author,
        .books-grid.size-extra-large .book-category {
            font-size: 0.9rem;
        }
        .books-grid.size-extra-large .tag-small {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }
        .books-grid.size-extra-large .book-stats {
            font-size: 0.8rem;
        }

        /* Grid adjustments based on size */
        .books-grid.size-small .row > * {
            flex: 0 0 auto;
            width: 12.5%;
        }
        .books-grid.size-medium .row > * {
            flex: 0 0 auto;
            width: 16.666667%;
        }
        .books-grid.size-large .row > * {
            flex: 0 0 auto;
            width: 20%;
        }
        .books-grid.size-extra-large .row > * {
            flex: 0 0 auto;
            width: 25%;
        }

        /* Responsive grid adjustments */
        @media (max-width: 1400px) {
            .books-grid.size-small .row > * { width: 16.666667%; }
            .books-grid.size-medium .row > * { width: 20%; }
            .books-grid.size-large .row > * { width: 25%; }
            .books-grid.size-extra-large .row > * { width: 33.333333%; }
        }

        @media (max-width: 992px) {
            .books-grid.size-small .row > * { width: 20%; }
            .books-grid.size-medium .row > * { width: 25%; }
            .books-grid.size-large .row > * { width: 33.333333%; }
            .books-grid.size-extra-large .row > * { width: 50%; }
        }

        @media (max-width: 768px) {
            .books-grid.size-small .row > * { width: 25%; }
            .books-grid.size-medium .row > * { width: 33.333333%; }
            .books-grid.size-large .row > * { width: 50%; }
            .books-grid.size-extra-large .row > * { width: 50%; }
        }

        @media (max-width: 576px) {
            .books-grid.size-small .row > * { width: 33.333333%; }
            .books-grid.size-medium .row > * { width: 50%; }
            .books-grid.size-large .row > * { width: 50%; }
            .books-grid.size-extra-large .row > * { width: 100%; }
        }