/* GLOBAL RESET */
* { box-sizing: border-box; }

:root {
    --primary-blue: #2f96f0;
    --b10-green: #008000;
    --bg-gray: #f0f0f0;
    --text-dark: #333;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-gray);
    overflow-x: hidden;
}

/* Sticky Header Logic */
.top-bar-1, .top-bar-2 {
    position: sticky;
    background: white;
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}

.top-bar-1 {
    top: 0;
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    font-size: 14px;
    height: 30px;
    align-items: center;
}

.top-bar-2 {
    top: 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    height: 50px;
}

/* Social Icons */
.social-icons a { margin-left: 10px; font-size: 18px; text-decoration: none; }

/* Logo & Live */
.logo-area img { height: 40px; cursor: pointer; }
.live-area { font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 5px; }
.live-indicator { color: red; text-decoration: none; display: flex; align-items: center; }
.dot {
    height: 8px; width: 8px; background-color: red;
    border-radius: 50%; display: inline-block; margin-right: 4px;
    animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Sidebar Menu */
.sidebar {
    height: 100%; width: 0; position: fixed; z-index: 2000;
    top: 0; right: 0; background-color: #fff;
    overflow-x: hidden; transition: 0.3s; padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}
.sidebar a {
    padding: 10px 30px; text-decoration: none; font-size: 18px;
    color: #333; display: block;
}
.sidebar .close-btn {
    position: absolute; top: 10px; right: 25px; font-size: 36px; cursor: pointer;
}
.menu-btn { font-size: 24px; color: var(--b10-green); cursor: pointer; }

/* Category Bar */
.category-bar {
    background: white; display: flex; align-items: center;
    border-bottom: 1px solid #ccc; height: 45px;
}
.fixed-home { padding: 10px 15px; border-right: 1px solid #eee; cursor: pointer; }
.cat-scroll-area { display: flex; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cat-item {
    display: inline-block; padding: 8px 15px; text-decoration: none;
    color: black; border-radius: 4px; margin: 2px; font-size: 14px;
}
.cat-item.active { background-color: var(--primary-blue); color: white; }

/* Marquee */
.ad-marquee {
    background-color: var(--b10-green); color: white;
    overflow: hidden; white-space: nowrap; height: 30px; display: flex; align-items: center;
}
.marquee-content {
    display: inline-block; padding-left: 100%; animation: scroll 15s linear infinite;
}
@keyframes scroll { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* Control Bar */
.control-bar {
    display: flex; justify-content: space-around; align-items: center;
    background: #e8e8e8; padding: 10px 0; position: sticky; top: 125px; z-index: 900;
}
.control-bar button, .pdf-btn {
    padding: 5px 10px; font-size: 16px; border: 1px solid #ccc;
    background: white; border-radius: 4px; cursor: pointer;
}
.pdf-btn { color: red; font-weight: bold; text-decoration: none; font-size: 14px; }
.page-indicator { font-weight: bold; font-size: 14px; }

/* Viewer */
.viewer-container {
    min-height: 60vh;
    text-align: center;
    padding-bottom: 0px;
    position: relative;
    padding-left: 4px; padding-right: 4px;
}
.viewer-container img {
    width: 100%; height: auto; display: block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#loadingMsg { padding: 50px; color: #666; }

/* Modal (Generic) */
.modal {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fefefe; margin: 15% auto; padding: 20px; width: 85%;
    max-width: 600px; /* Readability on desktop */
    border-radius: 5px;
    max-height: 80vh; overflow-y: auto; /* Scroll if text is long */
}
.close-modal {
    color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer;
}

/* NEW: Styles for Text Pages (About, Privacy, etc.) */
.info-text p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #444;
    font-size: 15px;
}
.info-text strong { color: #000; }

/* Footer */
#sliding-footer {
    position: fixed; left: 0; width: 100%; bottom: 0;
    transform: translateY(100%); 
    background-color: #222; color: white;
    text-align: center; padding: 15px 0;
    transition: transform 0.4s ease-in-out;
    z-index: 2000; border: none;
}
#sliding-footer.active { transform: translateY(0); }
#footer-btn {
    position: absolute; top: -40px; left: 15px;
    font-size: 28px; color: #333; background: transparent;
    cursor: pointer; line-height: 1; user-select: none;
    text-shadow: 0px 1px 2px rgba(255, 255, 255, 1);
}
#sliding-footer p {
    margin: 3px 0; font-size: 14px; letter-spacing: 0.1px; 
    font-family: sans-serif; color: #f0f0f0;
}

/* Clipper */
.clipper-overlay {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: #000; flex-direction: column;
}
.clipper-header {
    background: white; height: 50px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 15px; border-bottom: 1px solid #ccc; flex-shrink: 0;
}
.clipper-logo { height: 35px; }
.header-spacer { width: 30px; } 
.clipper-close {
    background: none; border: none; font-size: 30px; cursor: pointer; color: #333; line-height: 1;
}
.clipper-body {
    flex-grow: 1; overflow: hidden; position: relative; background-color: #333; 
    display: flex; justify-content: center; align-items: center;
}
.clipper-controls {
    padding: 15px; display: flex; justify-content: center; gap: 20px; background: #111;
}
.action-btn {
    padding: 10px 20px; border: none; border-radius: 20px; font-size: 16px; cursor: pointer;
    color: white; display: flex; align-items: center; gap: 8px;
}
.share-btn { background-color: #25d366; }
.download-btn { background-color: #2f96f0; }
.clipper-footer-text {
    background: #000; color: #888; text-align: center; font-size: 10px;
    padding: 5px 10px 10px 10px; font-family: sans-serif; border-top: 1px solid #222;
}

/* Side Arrows */
.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); color: white;
    border: none; padding: 15px 10px; font-size: 24px; cursor: pointer;
    z-index: 950; border-radius: 5px; transition: all 0.3s ease;
}
.nav-arrow:hover { background-color: rgba(0, 0, 0, 0.8); }
.left-arrow { left: 5px; }
.right-arrow { right: 5px; }
.nav-arrow:disabled { opacity: 0; pointer-events: none; }
.clipper-overlay .nav-arrow { display: none; }
/* కొత్త ఫుటర్ స్టైల్స్ */
.static-footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px 10px;
    width: 100%;
    margin-top: 20px;
}

.static-footer p {
    margin: 8px 0;
    font-size: 14px;
    color: #cccccc;
    line-height: 1.5;
}

/* డెవలపర్ పేరు బ్లూ కలర్ */
.dev-credit {
    color: #2196F3 !important;
    font-weight: bold;
    font-size: 15px !important;
}
