/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Giveaway Header */
.giveaway-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Next Month Section */
.next-month-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-top: 40px;
    border-radius: 12px;
    text-align: center;
}

.next-month-content h3 {
    font-size: 2rem;
    color: #382110;
    margin-bottom: 20px;
    font-weight: 600;
}

.next-month-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.next-month-highlights {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.next-month-highlights .highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-width: 150px;
}

.next-month-highlights .highlight-item:hover {
    transform: translateY(-5px);
}

.next-month-highlights .highlight-item i {
    font-size: 2rem;
    color: #382110;
    margin-bottom: 5px;
}

.next-month-highlights .highlight-item span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.header-image {
    max-width: 90%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.header-image:hover {
    transform: scale(1.02);
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #382110;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.subtitle em {
    font-style: italic;
    color: #382110;
}

/* Sorting Section */
.sorting-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.sorting-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-label {
    font-weight: 600;
    color: #382110;
}

.sort-buttons {
    display: flex;
    gap: 5px;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.sort-btn.active {
    background: #382110;
    color: white;
    border-color: #382110;
}

/* Book Items */
.giveaways-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.book-item {
    max-width: 100%;
    display: flex;
    gap: 40px;
    background: white;
    padding: 24px 24px 10px 24px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
}

.book-cover {
    flex-shrink: 0;
    width: 120px;
    height: 180px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.book-cover:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.book-edition-info {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    max-width: 100px;
    word-wrap: break-word;
}

.book-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.2;
    margin-bottom: 3px;
}

.author {
    font-size: 1rem;
    color: #666;
    margin: 0;
    margin-bottom: 4px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
}

.discounted-price {
    color: #e74c3c;
    font-size: 1.1rem;
    font-weight: bold;
}

.giveaway-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #666;
    margin: 0 0 6px 0;
    position: relative;
    z-index: 10;
}

.date-range {
    font-weight: 500;
}

.enter-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 30px;
    border: 1px solid;
    border-color: #1f387e;
    font-size: 16px;
    background-color: transparent;
    border-radius: 100px;
    font-weight: 600;
    color: #1f387e;
    box-shadow: 0 0 0 2px #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    align-self: flex-start;
    margin: 5px;
    text-decoration: none;
}

.enter-btn svg {
    position: absolute;
    width: 24px;
    fill: #1f387e;
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.enter-btn .arr-1 {
    right: 16px;
}

.enter-btn .arr-2 {
    left: -25%;
}

.enter-btn .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #c5e5e4;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.enter-btn .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.enter-btn:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}

.enter-btn:hover .arr-1 {
    right: -25%;
}

.enter-btn:hover .arr-2 {
    left: 16px;
}

.enter-btn:hover .text {
    transform: translateX(12px);
}

.enter-btn:hover svg {
    fill: #1f387e;
}

.enter-btn:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px greenyellow;
}

.enter-btn:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

.book-description {
    margin-top: 10px;
    line-height: 1.4;
    max-height: 100px;
    transition: max-height 0.3s ease;
    position: relative;
    z-index: 1;
}

.book-description p {
    margin-bottom: 6px;
    color: #333;
    font-size: 13px;
}

.book-description strong {
    color: #333;
    font-weight: 600;
}

.book-description em {
    font-style: italic;
    color: #666;
}

.show-more-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.show-more {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
}

.show-more:hover {
    text-decoration: underline;
}

.chevron {
    color: #666;
    font-size: 10px;
}

.show-more-btn {
    background: #382110;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.show-more-btn:hover {
    background: #2a180c;
}

/* No Giveaways Section */
.no-giveaways-section {
    padding: 100px 0;
    text-align: center;
    background: #f8f9fa;
}

.no-giveaways-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 30px;
}

.no-giveaways-section h2 {
    color: #666;
    margin-bottom: 20px;
}

.no-giveaways-section p {
    color: #999;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.rules-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.step-content h4 {
    color: #333;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .giveaway-header {
        margin-bottom: 20px;
    }

    .header-image {
        max-width: 100%;
        border-radius: 6px;
    }

    .book-item {
        max-width: 100%;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .book-cover {
        width: 100px;
        height: 150px;
        align-self: center;
        margin-bottom: 10px;
    }

    .book-edition-info {
        margin-top: 6px;
        font-size: 0.75rem;
        max-width: 90px;
    }

    .book-title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    .author {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin: 6px 0;
    }

    .giveaway-meta {
        flex-direction: column;
        gap: 3px;
        margin: 6px 0;
    }

    .enter-btn {
        width: 100%;
        max-width: 200px;
        margin: 10px auto;
        align-self: center;
    }

    .book-description {
        margin-top: 15px;
        max-height: none;
    }

    .sorting-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .sort-buttons {
        flex-wrap: wrap;
    }

    .pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .next-month-section {
        padding: 40px 20px;
        margin-top: 30px;
    }

    .next-month-content h3 {
        font-size: 1.5rem;
    }

    .next-month-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .next-month-highlights {
        gap: 20px;
    }

    .next-month-highlights .highlight-item {
        min-width: 120px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .giveaway-header {
        margin-bottom: 15px;
    }

    .header-image {
        max-width: 100%;
        border-radius: 4px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .book-item {
        padding: 15px;
        gap: 12px;
    }

    .book-cover {
        width: 80px;
        height: 120px;
        margin-bottom: 8px;
    }

    .book-edition-info {
        font-size: 0.7rem;
        max-width: 70px;
        margin-top: 4px;
    }

    .book-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    .author {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .enter-btn {
        width: 100%;
        max-width: 180px;
        padding: 8px 20px;
        font-size: 14px;
        margin: 10px auto;
        align-self: center;
    }

    .book-description {
        font-size: 0.85rem;
    }

    .next-month-section {
        padding: 30px 15px;
        margin-top: 25px;
    }

    .next-month-content h3 {
        font-size: 1.3rem;
    }

    .next-month-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .next-month-highlights {
        flex-direction: column;
        gap: 15px;
    }

    .next-month-highlights .highlight-item {
        min-width: 100px;
        padding: 12px;
    }
}