/* Kitap Benzeri PDF Görüntüleyici */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
}

.book-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.book-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.page-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.page-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#pageInfo {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    min-width: 150px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 20px;
}

.book-viewer {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    overflow: auto;
    padding: 20px;
    gap: 5px;
}

.book-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 600px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
}

.left-page {
    box-shadow: -3px 0 15px rgba(0,0,0,0.1), inset 0 2px 10px rgba(0,0,0,0.05);
}

.right-page {
    box-shadow: 3px 0 15px rgba(0,0,0,0.1), inset 0 2px 10px rgba(0,0,0,0.05);
}

.book-spine {
    width: 4px;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.1) 0%, 
        rgba(0,0,0,0.3) 50%, 
        rgba(0,0,0,0.1) 100%);
    min-height: 600px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 2px;
}

.pdf-page {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border: 2px solid #fff;
}

.pdf-page:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.book-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.zoom-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.zoom-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.zoom-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

#zoomLevel {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    min-width: 70px;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 15px;
}

.fullscreen-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Sayfa Atlama */
.page-jump {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-input {
    width: 100px;
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 20px;
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.page-input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.go-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.go-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Görünüm Modu */
.view-mode {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 10px 20px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.view-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* İndirme Butonu */
.download-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.download-btn svg {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .book-viewer {
        flex-direction: column;
        gap: 20px;
    }
    
    .book-spine {
        display: none !important;
    }
    
    .book-page {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .book-container {
        padding: 10px;
    }
    
    .book-controls {
        padding: 10px;
        gap: 10px;
    }
    
    .page-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .page-jump {
        width: 100%;
        justify-content: center;
    }
    
    .view-mode {
        width: 100%;
        justify-content: center;
    }
    
    .book-tools {
        flex-direction: column;
        gap: 15px;
    }
    
    .book-page {
        padding: 10px;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .page-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .page-input {
        width: 80px;
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .go-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .view-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .fullscreen-btn,
    .download-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    #pageInfo {
        font-size: 14px;
        min-width: 120px;
        padding: 8px 15px;
    }
}

/* Sayfa geçiş animasyonu */
.page-transition {
    animation: pageFlip 0.6s ease-in-out;
}

@keyframes pageFlip {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    50% {
        transform: rotateY(90deg);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

/* Loading animasyonu */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    font-size: 18px;
    color: #6c757d;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

