/* Wydawnictwo Page Specific Styles */

.wydawnictwo-page {
    background: var(--primary-color);
}

/* Header Solid */
.header-solid {
    position: relative;
    background: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

.header-solid .nav-list a.active {
    color: rgb(255, 125, 0);
}

.header-solid .nav-list a.active::after {
    width: 100%;
    background: rgb(255, 125, 0);
}

/* Coming Soon Section */
.wydawnictwo-coming-soon {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: var(--secondary-color);
}

.wydawnictwo-coming-soon .container {
    max-width: 720px;
}

.coming-soon-content {
    text-align: center;
}

.coming-soon-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.coming-soon-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--text-gray);
    font-weight: 400;
}

/* Publishing Hero Slider */
.publishing-hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--secondary-color);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
}

.hero-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 4rem;
    padding: 2rem 4rem;
    z-index: 2;
}

/* Book Cover Side */
.hero-slide-book {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.hero-slide.active .hero-slide-book {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide-book img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hero-slide-book:hover img {
    transform: scale(1.03);
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: -20px;
    padding: 0.6rem 1.5rem;
    background: rgb(255, 125, 0);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 125, 0, 0.4);
    z-index: 2;
}

.hero-badge.bestseller {
    background: var(--accent-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-badge.zapowiedz {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.hero-badge.special {
    background: linear-gradient(135deg, rgb(255, 125, 0) 0%, var(--accent-color) 100%);
}

/* Text Side */
.hero-slide-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.hero-slide.active .hero-slide-text {
    transform: translateX(0);
    opacity: 1;
}

.hero-slide-title {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-slide-description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-light);
}

.hero-availability {
    font-size: 0.9rem;
    color: rgb(255, 125, 0);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-btn-buy {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgb(255, 125, 0);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    align-self: flex-start;
}

.hero-btn-buy:hover {
    background: rgb(230, 110, 0);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 125, 0, 0.4);
}

/* Slider Navigation */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: rgba(255, 125, 0, 0.9);
    border-color: rgb(255, 125, 0);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav-btn.prev {
    left: 2rem;
}

.hero-nav-btn.next {
    right: 2rem;
}

/* Slider Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: rgb(255, 125, 0);
    width: 40px;
    border-radius: 6px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
}

/* Featured Publications */
.featured-publications {
    padding: 5rem 2rem;
    background: var(--primary-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-book {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-book:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 125, 0, 0.3);
}

.featured-book.large {
    grid-row: span 2;
}

.featured-book-cover {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.featured-book.large .featured-book-cover {
    height: 100%;
}

.featured-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-book:hover .featured-book-cover img {
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgb(255, 125, 0);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.book-badge.new {
    background: var(--accent-color);
}

.featured-book-info {
    padding: 2rem;
}

.featured-book-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.featured-book-author {
    font-size: 1rem;
    color: rgb(255, 125, 0);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.featured-book-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.featured-book-description-short {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.book-category,
.book-pages {
    font-size: 0.85rem;
    color: var(--text-gray);
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.featured-book-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.book-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: rgb(255, 125, 0);
    color: white;
}

.btn-primary:hover {
    background: rgb(230, 110, 0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 125, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Categories */
.publishing-categories {
    padding: 4rem 2rem;
    background: var(--secondary-color);
}

.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(30, 30, 30, 0.8);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: rgba(255, 125, 0, 0.5);
    color: var(--text-light);
}

.category-btn.active {
    background: rgb(255, 125, 0);
    color: white;
    border-color: rgb(255, 125, 0);
}

/* Publications Catalog */
.publications-catalog {
    padding: 5rem 2rem 6rem;
    background: var(--secondary-color);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.publication-card {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 125, 0, 0.3);
}

.publication-cover {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.publication-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.publication-card:hover .publication-cover img {
    transform: scale(1.1);
}

.publication-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-card:hover .publication-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgb(255, 125, 0);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-view:hover {
    background: white;
    color: rgb(255, 125, 0);
}

.publication-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publication-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgb(255, 125, 0);
    margin-bottom: 0.5rem;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.publication-author {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.publication-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.reviews {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.publication-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.publication-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
}

.btn-add-cart {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: transparent;
    color: rgb(255, 125, 0);
    border: 1px solid rgb(255, 125, 0);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: rgb(255, 125, 0);
    color: white;
}

/* Newsletter */
.publishing-newsletter {
    padding: 6rem 2rem;
    background: var(--primary-color);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.newsletter-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: rgb(255, 125, 0);
    background: rgba(30, 30, 30, 1);
}

.newsletter-btn {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgb(255, 125, 0);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: rgb(230, 110, 0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 125, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .featured-book.large {
        grid-row: span 1;
        grid-column: span 2;
    }

    .featured-book.large .featured-book-cover {
        height: 400px;
    }

    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .hero-slide-content {
        gap: 3rem;
        padding: 2rem 3rem;
    }

    .hero-slide-title {
        font-size: 2.5rem;
    }

    .hero-slide-description {
        font-size: 1rem;
    }
}

@media (max-width: 968px) {
    .publishing-hero-slider {
        height: auto;
        min-height: auto;
    }

    .hero-slide-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 6rem 2rem 4rem;
        max-height: none;
    }

    .hero-slide-book {
        order: 1;
        transform: translateX(0);
        margin: 0 auto;
    }

    .hero-slide-book img {
        max-height: 400px;
        max-width: 300px;
    }

    .hero-badge {
        top: 10px;
        left: 10px;
    }

    .hero-slide-text {
        order: 2;
        transform: translateX(0);
        text-align: center;
        align-items: center;
    }

    .hero-slide-title {
        font-size: 2rem;
    }

    .hero-slide-description {
        font-size: 1rem;
    }

    .hero-slide-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-price {
        font-size: 1.75rem;
    }

    .hero-btn-buy {
        align-self: center;
    }

    .hero-nav-btn {
        width: 50px;
        height: 50px;
    }

    .hero-nav-btn.prev {
        left: 1rem;
    }

    .hero-nav-btn.next {
        right: 1rem;
    }

    .hero-slider-indicators {
        bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-book.large {
        grid-column: span 1;
    }

    .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .categories-filter {
        gap: 0.75rem;
    }

    .category-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-slide-content {
        padding: 5rem 1.5rem 3rem;
        gap: 1.5rem;
    }

    .hero-slide-book img {
        max-height: 350px;
        max-width: 250px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
        top: 5px;
        left: 5px;
    }

    .hero-slide-title {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
        margin-bottom: 1rem;
    }

    .hero-slide-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-slide-meta {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-price {
        font-size: 1.5rem;
    }

    .hero-availability {
        font-size: 0.85rem;
    }

    .hero-btn-buy {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }

    .hero-nav-btn.prev {
        left: 0.5rem;
    }

    .hero-nav-btn.next {
        right: 0.5rem;
    }

    .hero-slider-indicators {
        bottom: 1.5rem;
        gap: 0.75rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 30px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .featured-publications {
        padding: 3rem 1rem;
    }

    .featured-book-info {
        padding: 1.5rem;
    }

    .featured-book-title {
        font-size: 1.4rem;
    }

    .featured-book-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .publications-catalog {
        padding: 3rem 1rem 4rem;
    }

    .publication-cover {
        height: 280px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}

/* Filter Animation */
.publication-card.hidden {
    display: none;
}

.publication-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

