/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --text-color: #333;
    --light-color: #ecf0f1;
    --dark-color: #1a1a1a;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(236, 240, 241, 0.8)),
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="100%" height="100%" fill="none"/><path d="M40,40 L160,40 L160,160 L40,160 Z" stroke="%232c3e50" stroke-width="2" fill="none" stroke-dasharray="5,5" /></svg>');
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 30px 0;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background-color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 2px 2px 0px rgba(44, 62, 80, 0.2);
}

h2 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Book Display Styles */
.book-display {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    justify-content: center;
}

.cover-container {
    position: relative;
    perspective: 1000px;
    width: 300px;
    height: 450px;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.cover-container:hover {
    transform: rotate3d(0, 1, 0, 15deg);
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.reflective-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 5px;
    pointer-events: none;
}

.book-info {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.format-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.format-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.format-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.book-description h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.book-description h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.book-description p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Book Features Styles */
.book-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.feature h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.feature ul {
    list-style-position: inside;
    margin-left: 10px;
}

.feature li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.feature li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--dark-color);
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .book-display {
        flex-direction: column;
        align-items: center;
    }

    .cover-container {
        margin-bottom: 30px;
    }

    .book-info {
        text-align: center;
    }

    .format-buttons {
        justify-content: center;
    }

    .book-description h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature {
        text-align: center;
    }

    .feature h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .cover-container {
        width: 230px;
        height: 345px;
    }
}
