:root {
    --primary-black: #0a0a0a;
    --secondary-dark: #171717;
    --accent-yellow: #fce02d;
    --text-light: #f5f5f5;
    --text-dark: #111111;
    --border-dark: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-black);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1920px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary-black);
}

.top-bar {
    background-color: var(--accent-yellow); 
    color: var(--primary-black); 
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-black); 
    z-index: 50;
    height: 70px;
}

.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--primary-black); cursor: pointer; padding: 0; }
.brand-info { display: flex; align-items: center; gap: 15px; }
.brand-logo { height: 45px; width: auto; }
.brand-divider { width: 1px; height: 35px; background-color: var(--primary-black); opacity: 0.2; }
.brand-subtitle { font-size: 13px; color: var(--primary-black); font-weight: 700; letter-spacing: 0.5px; }

.catalog-badge {
    background: var(--primary-black); color: var(--accent-yellow); 
    padding: 6px 16px; border-radius: 4px; font-size: 13px;
    font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
}

.main-content { display: flex; flex: 1; height: calc(100vh - 70px); overflow: hidden; position: relative; }
.mobile-footer { display: none; }

.sidebar {
    width: 300px; background: var(--secondary-dark); border-right: 1px solid var(--border-dark);
    display: flex; flex-direction: column; z-index: 20; box-shadow: 5px 0 20px rgba(0,0,0,0.1); height: 100%;
}

.sidebar-header { padding: 24px; border-bottom: 1px solid var(--border-dark); }
.sidebar-header h2 { font-size: 14px; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px; }

.category-menu { list-style: none; overflow-y: auto; flex: 1; padding: 15px; }
.category-menu::-webkit-scrollbar { width: 6px; }
.category-menu::-webkit-scrollbar-track { background: var(--secondary-dark); }
.category-menu::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 10px; }
.category-menu::-webkit-scrollbar-thumb:hover { background: #555; }

.category-menu li {
    padding: 12px 16px; margin-bottom: 5px; border-radius: 6px; cursor: pointer;
    font-weight: 500; font-size: 14px; color: #a3a3a3; transition: all 0.2s ease;
}
.category-menu li:hover { color: var(--accent-yellow); background: rgba(255, 255, 255, 0.05); padding-left: 20px; }
.category-menu li.active { background: var(--accent-yellow); color: var(--text-dark); font-weight: 700; }

.contact-card { padding: 25px; background: var(--primary-black); border-top: 1px solid var(--border-dark); }
.contact-card h3 { font-size: 11px; color: var(--accent-yellow); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.address-line { font-size: 13px; color: #a3a3a3; margin-bottom: 12px; line-height: 1.5; }
.contact-link { display: block; color: var(--text-light); text-decoration: none; font-size: 14px; font-weight: 500; margin-bottom: 8px; transition: color 0.2s; }
.contact-link:hover { color: var(--accent-yellow); }

.social-links { display: flex; gap: 12px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-dark); }
.social-btn { display: flex; justify-content: center; align-items: center; width: 36px; height: 36px; background: var(--secondary-dark); color: var(--text-light); border-radius: 6px; transition: all 0.2s; }
.social-btn:hover { background: var(--accent-yellow); color: var(--text-dark); transform: translateY(-2px); }

.viewer-section { 
    flex: 1; display: flex; flex-direction: column; position: relative; 
    background-image: url('background.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;
    background-color: var(--primary-black); 
}

.intro-overlay {
    position: absolute; inset: 0; z-index: 45; background: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    display: flex; align-items: center; justify-content: center;
    opacity: 1; visibility: visible; transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
}
.intro-overlay.hidden { opacity: 0; visibility: hidden; transform: scale(1.05); }

.intro-content { text-align: center; max-width: 650px; padding: 40px; animation: fadeInUp 1s ease forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.intro-title { font-size: 3.5rem; font-weight: 800; color: #fff; margin-bottom: 5px; letter-spacing: 2px; }
.text-yellow { color: var(--accent-yellow); }
.intro-subtitle { font-size: 1.2rem; color: var(--accent-yellow); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 25px; font-weight: 700; }
.intro-text { font-size: 1.05rem; color: #d4d4d4; line-height: 1.6; margin-bottom: 40px; }

.intro-btn {
    background: var(--accent-yellow); color: var(--primary-black); border: none; padding: 14px 35px; font-size: 1.1rem; font-weight: 800;
    border-radius: 50px; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
    transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px;
}
.intro-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(252, 224, 45, 0.35); }

.toolbar, .canvas-wrapper { opacity: 0; visibility: hidden; transition: opacity 0.8s ease 0.2s, visibility 0.8s ease 0.2s; }
.viewer-section.catalog-active .toolbar, .viewer-section.catalog-active .canvas-wrapper { opacity: 1; visibility: visible; }

.progress-container { width: 100%; height: 3px; background: transparent; position: absolute; top: 0; left: 0; z-index: 40; }
.progress-bar { height: 100%; background: var(--accent-yellow); width: 0%; transition: width 0.3s ease; }

/* --- YENİ EKLENEN/GÜNCELLENEN: KATEGORİ VE SAYFA TASARIMI --- */
.toolbar {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px);
    padding: 12px 24px; display: flex; justify-content: center;
    align-items: center; gap: 20px; border-bottom: 1px solid rgba(0,0,0,0.1); z-index: 10;
}

.modern-btn {
    display: flex; align-items: center; gap: 8px; background: var(--primary-black); color: var(--accent-yellow);
    border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 13px;
    text-transform: uppercase; transition: all 0.2s;
}
.modern-btn:hover:not(:disabled) { background: var(--accent-yellow); color: var(--text-dark); }
.modern-btn:disabled { background: #e5e5e5; color: #a3a3a3; cursor: not-allowed; }

/* DİKKAT ÇEKİCİ SAYFA GÖSTERGESİ */
.page-indicator { 
    display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-dark); text-align: center; 
}
.cat-title { 
    background: var(--primary-black); color: var(--accent-yellow); 
    padding: 5px 12px; border-radius: 6px; font-size: 13px; 
    letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.page-numbers { font-size: 14px; letter-spacing: 0.5px; }

/* ---------------------------------------------------- */

.canvas-wrapper { flex: 1; overflow: auto; padding: 40px 20px; display: flex; justify-content: center; align-items: flex-start; }

.catalog-spread { display: flex; background-color: transparent; box-shadow: 0 25px 60px rgba(0,0,0,0.5); position: relative; }
.pdf-page { background-color: white; display: block; }

.book-fold {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 60px; transform: translateX(-50%);
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.03) 40%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.03) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none; z-index: 5; display: none;
}

.watermark-logo {
    position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%);
    height: 75px; z-index: 15; pointer-events: none; 
    filter: drop-shadow(0px 2px 5px rgba(0,0,0,0.3)); opacity: 0.95;
}

.sidebar-overlay { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 15; backdrop-filter: blur(3px); }

@media (max-width: 992px) {
    .intro-title { font-size: 2.2rem; } .intro-subtitle { font-size: 0.9rem; } .intro-text { font-size: 0.9rem; margin-bottom: 30px; } .intro-btn { padding: 12px 25px; font-size: 0.95rem; }
    .mobile-menu-btn { display: block; } .top-bar { padding: 10px 15px; height: 60px; } .brand-logo { height: 32px; } .brand-subtitle, .brand-divider { display: none; } .catalog-badge { font-size: 10px; padding: 5px 10px; }
    .main-content { height: calc(100vh - 100px); }
    .sidebar { position: absolute; left: -100%; top: 0; bottom: 0; width: 280px; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: none; }
    .sidebar.active { left: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.6); } .sidebar-overlay.active { display: block; }
    
    .toolbar { padding: 10px; gap: 10px; } 
    .modern-btn { padding: 6px 12px; font-size: 11px; }
    
    /* Mobilde sığması için yazıları alt alta ve küçülttük */
    .page-indicator { flex-direction: column; gap: 4px; }
    .cat-title { font-size: 10px; padding: 3px 8px; }
    .page-numbers { font-size: 12px; }

    .canvas-wrapper { padding: 15px 10px; -webkit-overflow-scrolling: touch; align-items: center; }
    .catalog-spread { box-shadow: 0 10px 30px rgba(0,0,0,0.4); width: 100%; display: block; } .pdf-page { width: 100% !important; height: auto !important; }
    .watermark-logo { height: 45px; bottom: 15px; }
    .mobile-footer { display: flex; justify-content: center; align-items: center; height: 40px; background-color: var(--primary-black); color: var(--accent-yellow); font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; z-index: 40; }
    .mobile-footer strong { color: #fff; margin-right: 4px; }
}