* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "📚";
    font-size: 1.8rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.book-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
}

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

.book-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.book-thumbnail {
    width: 200px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.book-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.book-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.book-author {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

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

.stars {
    color: #ffd700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.rating-text {
    color: #666;
    font-weight: 500;
}

.book-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.detail-value {
    color: #2d3748;
    font-size: 1.1rem;
}

.book-description {
    padding: 2rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.description-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.description-text {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
}

.links-section {
    padding: 2rem;
}

.links-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.link-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.paid { background: #d4af37; }
.free { background: #22c55e; }
.review { background: #3182ce; }
.info { background: #805ad5; }

.link-details {
    flex: 1;
}

.link-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-type {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-share {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding-top: 1.5rem;
}

.social-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.x { background: #000000; }
.facebook { background: #4267b2; }
.linkedin { background: #0077b5; }
.reddit { background: #ff4500; }
.bluesky { background: #0085ff; }
.email { background: #6b7280; }
.mastodon { background: #563acc; }

/* Responsive Design */
@media (max-width: 768px) {
    .book-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .book-thumbnail {
        width: 150px;
        height: 225px;
        margin: 0 auto;
    }

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

    .book-details {
        grid-template-columns: 1fr;
    }

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

    .social-buttons {
        justify-content: center;
    }

    .nav-container {
        padding: 0 1rem;
    }

    main {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .book-title {
        font-size: 1.5rem;
    }

    .book-author {
        font-size: 1.1rem;
    }

    .social-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-benefits {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.modal-benefits h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-benefits ul {
    list-style: none;
    padding: 0;
}

.modal-benefits li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.modal-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.newsletter-form {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.modal-footer {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-header {
        padding-right: 1.5rem;
    }
}

