/* Styling for the Full Surah View */

#full-surah-container {
    padding: 15px;
    /* This uses the light-mode background color directly from your theme's CSS */
    background-color: #f8f9fa; 
    color: #333;
}

/* This ensures that in dark mode, it still has a readable background */
.dark-mode #full-surah-container {
    background-color: #2c2c2c;
    color: #f0f0f0;
}

.full-surah-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

#fs-surah-name {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-family: 'Amiri', serif; /* Example font for Arabic */
}

#fs-translator-name {
    text-align: center;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.full-surah-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.full-surah-controls .display-options {
    display: flex;
    gap: 15px;
}

/* Make the copied translator dropdown fit in */
#fs-select-translators-container .select-translators-btn {
    background-color: var(--secondary-button-bg);
    color: var(--secondary-button-text);
}

.bismillah {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    font-family: 'Amiri', serif;
}

.fs-ayat-container {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color-light);
}

.fs-ayat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fs-ayat-link {
    font-weight: bold;
    font-size: 1.2em;
    color: var(--link-color);
    text-decoration: none;
}

.fs-ayat-link:hover {
    text-decoration: underline;
}

.fs-ayat-actions {
    display: flex;
    gap: 8px;
}

/* Style for the new info icon, matching the notes icon */
.fs-info-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--icon-color);
    padding: 0;
}

.fs-info-icon svg {
    width: 18px;
    height: 18px;
}

.fs-ayat-text .arabic {
    font-size: 1.8em;
    line-height: 1.8;
    text-align: right;
    direction: rtl;
    margin-bottom: 10px;
    font-family: 'Amiri', serif;
}

.fs-ayat-text .transliteration {
    font-style: italic;
    color: var(--text-color-muted);
    margin-bottom: 15px;
}

.fs-ayat-translations .translation-block {
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--background-color-offset);
    border-left: 3px solid var(--accent-color);
}

.fs-ayat-translations .translator-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.ayat-highlight {
    background-color: rgba(255, 255, 0, 0.3); /* A semi-transparent yellow */
    transition: background-color 1s ease-out;
    border-radius: 5px;
}

/* --- NEW CSS for Correct Translator Layout --- */

.fs-ayat-translations .translation-block {
    position: relative; /* Needed for positioning the buttons */
    padding: 12px;
    padding-right: 45px; /* Make space for the buttons on the right */
    margin-bottom: 10px;
    border-left: 3px solid var(--accent-color, #007bff);
    background-color: var(--background-color-offset, #f1f1f1);
}

.dark-mode .fs-ayat-translations .translation-block {
    background-color: var(--background-color-offset, #3a3a3a);
}

.translation-block h4 {
    margin-top: 0;
}

/* --- FIX for Button Layout and Color --- */

.translation-block .translation-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column; /* Stacks buttons vertically */
    align-items: center;   /* Centers them horizontally */
    gap: 12px;             /* Increases space between buttons */
}

/* This is the KEY FIX: A highly specific selector to override the global style */
#full-surah-container .translation-actions .add-note-icon {
    position: static; /* Removes absolute positioning ONLY in the surah view */
}

/* This sets the color for BOTH icons inside the surah view */
.translation-actions .add-note-icon,
.translation-actions .fs-info-icon {
    color: #4caf50; /* Your requested green color */
}

.translation-actions .add-note-icon:hover,
.translation-actions .fs-info-icon:hover {
    /* Optional: A slightly darker green on hover */
    color: #45a049; 
}

.translation-actions svg {
    width: 18px;
    height: 18px;
}

.translation-actions .add-note-icon:hover,
.translation-actions .fs-info-icon:hover {
    color: var(--accent-color, #007bff); /* Color on hover */
}

.dark-mode .translation-actions .add-note-icon,
.dark-mode .translation-actions .fs-info-icon {
    color: var(--icon-color, #bbb);
}

.translation-actions svg {
    width: 18px;
    height: 18px;
}

/* --- Styling for Ayat Selection Mode --- */
.ayat-selection-mode .fs-ayat-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ayat-select-checkbox {
    width: 18px;
    height: 18px;
}

/* --- Styling for Ayat Selection Banner --- */
#ayat-selection-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--accent-color, #007bff);
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#ayat-selection-info {
    font-size: 1.1em;
}
