@import 'common.css';

/* Logo Section */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinning-logo {
    width: min(95vmin, 800px);
    height: min(95vmin, 800px);
    animation: spin 20s linear infinite;
    filter: drop-shadow(0 0 3rem var(--glow-color));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Book Preview Section */
.book-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 8rem 4rem 4rem;
    position: relative;
    z-index: 1;
}

.book-3d {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.book-cover {
    width: 500px;
    height: auto;
    border-radius: 10px;
}

.book-title-glow {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.8rem;
    margin-top: 1.5rem;
    text-align: center;
    animation: titleGlow 3s infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: none;
    }
    50% {
        color: var(--primary-color);
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color),
                     0 0 30px var(--primary-color);
    }
}

.book-description {
    flex: 1;
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.buy-now-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 2rem;
    font-weight: bold;
    transition: all 0.3s;
}

.buy-now-btn.golden {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: black;
    border: 2px solid #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.buy-now-btn.golden:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 6rem 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: transparent;
}

.contact-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.social-icon {
    font-size: 3rem;
    color: inherit;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 4px;
    color: inherit;
    font-family: inherit;
    font-size: 1.1rem;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: darkred;
}

/* Store and Newsletter Container */
.store-newsletter-container {
    display: flex;
    justify-content: space-between;
    padding: 6rem 4rem;
    gap: 6rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: transparent;
}

.store-section,
.newsletter-section {
    flex: 1;
    text-align: center;
}

.store-section h2,
.newsletter-section h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.store-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.store-icon {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 2rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
    padding: 1rem;
}

.store-icon.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: 4px;
    color: inherit;
    font-family: inherit;
    font-size: 1.1rem;
}

.newsletter-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.newsletter-btn:hover {
    background-color: darkred;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .book-preview {
        flex-direction: column;
        text-align: center;
    }

    .book-cover {
        max-width: min(500px, 80vw);
    }
}

@media (max-width: 768px) {
    .nav-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .store-newsletter-container {
        flex-direction: column;
    }

    .contact-form,
    .newsletter-form {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .book-title-glow {
        font-size: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .book-preview {
        padding: 6rem 2rem 2rem;
    }

    .contact-section,
    .store-newsletter-container {
        padding: 4rem 2rem;
    }

    .contact-section h2,
    .store-section h2,
    .newsletter-section h2 {
        font-size: 2.5rem;
    }
}