/* myownbible_ribbon_style.css */

/* 1. മുകളിൽ ഫിക്സ്ഡ് ആയി ഓവർലേ ചെയ്ത് നിൽക്കുന്ന മെയിൻ കണ്ടെയ്നർ */
.chapters-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1e1e24; /* പ്രീമിയം ബ്ലാക്ക് തീം */
    color: #ffffff;
    padding: 12px 20px 20px 20px;
    box-sizing: border-box;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    z-index: 99999;
    display: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* റിബൺ ചുരുങ്ങുമ്പോൾ ഉള്ള സ്റ്റൈൽ */
.chapters-overlay-container.collapsed {
    transform: translateY(-100%);
    opacity: 0;
}

/* 2. നിങ്ങൾ ആവശ്യപ്പെട്ടതുപോലെ കൃത്യം നടുവിലായി ലോക്ക് ചെയ്തു നിൽക്കുന്ന ടോഗ്ഗിൾ ബട്ടൺ */
.ribbon-toggle-trigger-btn {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 16px;
    z-index: 100000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: bold;
    display: none;
}
.ribbon-toggle-trigger-btn:hover { background: #2980b9; }

.ribbon-row-title {
    font-size: 13px; 
    color: #8a8a9e; 
    margin: 4px 0;
    font-weight: bold;
}

.chapters-top-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
}

/* അധ്യായങ്ങളുടെ ബട്ടൺ ശൈലി */
.chapter-top-btn {
    background: #2a2a30;
    color: #ffffff;
    padding: 5px 0;
    width: 42px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.2s;
    border: 1px solid #3a3a42;
    display: inline-block;
}
.chapter-top-btn:hover, .chapter-top-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* 3. നിങ്ങൾ ആവശ്യപ്പെട്ട വാക്യങ്ങൾക്കുള്ള പച്ച നിറമുള്ള ലിങ്ക് ബട്ടൺ ശൈലി */
.verse-top-btn {
    background: #232329;
    color: #bbbbbb;
    border: 1px solid #33333b;
    cursor: pointer;
}
.verse-top-btn:hover, .verse-top-btn.active {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.ribbon-close-btn {
    background: #3d1d1d;
    color: #ff8888;
    border: 1px solid #5c2c2c;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    padding: 3px 10px;
}
.ribbon-close-btn:hover { background: #4d1d1d; }

/* 4. 66 പുസ്തകങ്ങളിലേക്ക് തിരികെ പോകാനുള്ള ഓറഞ്ച് ബട്ടൺ ശൈലി */
.back-main-btn {
    background: #e67e22;
    color: white;
    border: 1px solid #d35400;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 10px;
    margin-right: 10px;
}
.back-main-btn:hover { background: #d35400; }

.test-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 15px;
}
.book-link-btn {
    background: #ebf3f9;
    color: #2c3e50;
    padding: 8px 5px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border: 1px solid #cedee9;
    display: inline-block;
}
.book-link-btn.active { background: #3498db; color: white; border-color: #3498db; }

/* വായനാ കണ്ടൻറിന് റിബണിന്റെ വലിപ്പത്തിന് അനുസരിച്ച് ടോപ്പ് മാർജിൻ നൽകുന്നു */
.main-content-wrapper {
    margin-top: 20px;
    transition: margin-top 0.3s ease-in-out;
}
body.ribbon-open .main-content-wrapper { 
    margin-top: 180px; 
}