/* ===================================================================
   COMPONENTS/TOGGLES.CSS
   Toggle Component Styles and Fixes
   =================================================================== */

/* ===== TOGGLE BASE STYLES ===== */
.toggle {
    margin: 10px 0 20px;
    position: relative;
    clear: both;
}

.toggle .toggle {
    margin: 10px 0 0;
}

.toggle>input {
    cursor: pointer;
    filter: alpha(opacity=0);
    height: 45px;
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

/* ===== TOGGLE BUTTON STYLES ===== */
.toggle>label,
.toggle>.toggle-title {
    transition: border-color 0.2s ease;
    background: #f7f7f7;
    border: none;
    border-left: 3px solid #CCC;
    border-radius: 5px;
    color: #CCC;
    display: block;
    min-height: 20px;
    padding: 12px 20px 12px 15px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-decoration: none;
}

.toggle>label:-moz-selection,
.toggle>.toggle-title:-moz-selection {
    background: none;
}

/* Hover - border becomes blue */
.toggle>label:hover,
.toggle>.toggle-title:hover {
    border-color: rgba(0, 136, 204, 0.4);
}

.toggle>label+p,
.toggle>.toggle-title+p {
    color: #999;
    display: block;
    overflow: hidden;
    padding-left: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 25px;
}

.toggle>label i,
.toggle>.toggle-title i {
    font-size: 0.7em;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

/* ===== TOGGLE CONTENT ===== */
.toggle>.toggle-content {
    display: none;
    border-top-color: #343a40;
    border-bottom-color: #343a40;
    border-right-color: #343a40;
    border-radius: 5px;
}

.toggle>.toggle-content>p {
    margin-bottom: 0;
    padding: 10px 0;
}

/* ===== TOGGLE ACTIVE STATE ===== */
.toggle.active i.fa-minus {
    display: inline;
}

.toggle.active i.fa-plus {
    display: none;
}

.toggle.active>label,
.toggle.active>.toggle-title {
    background: #f7f7f7;
}

.toggle.active>p {
    white-space: normal;
}

.toggle>p.preview-active {
    height: auto;
    white-space: normal;
}

/* ===== TOGGLE SIZE VARIANTS ===== */
.toggle.toggle-sm .toggle>label,
.toggle.toggle-sm .toggle>.toggle-title {
    font-size: 0.9em;
    padding: 6px 20px 6px 10px;
}

.toggle.toggle-sm .toggle>.toggle-content>p {
    font-size: 0.9em;
}

.toggle.toggle-lg .toggle>label,
.toggle.toggle-lg .toggle>.toggle-title {
    font-size: 1.1em;
    padding: 16px 20px 16px 20px;
}

.toggle.toggle-lg .toggle>.toggle-content>p {
    font-size: 1.1em;
}

/* ===== TOGGLE FIX - Ensure closed toggles are hidden ===== */
.toggle:not(.active) > .toggle-content,
.toggle:not(.active) > section > .toggle-content {
    display: none;
}

.toggle.active > .toggle-content,
.toggle.active > section > .toggle-content {
    display: block;
}

/* Override for media-gallery when active */
.toggle.active > section > .toggle-content.media-gallery,
.toggle.active > .toggle-content.media-gallery {
    display: grid;
}

/* ===================================================================
   CHANGELOG MARKDOWN STYLING
   =================================================================== */

#changelog-content h2 {
    color: #0088cc;
    border-bottom: 2px solid #0088cc;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#changelog-content h3 {
    color: #1abc9c;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

#changelog-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#changelog-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#changelog-content ul li::before {
    content: "•";
    color: #0088cc;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

#changelog-content code {
    background: rgba(0, 136, 204, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #00b4d8;
}

#changelog-content a {
    color: #00b4d8;
    text-decoration: none;
}

#changelog-content a:hover {
    text-decoration: underline;
}

#changelog-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#changelog-content strong {
    color: #fff;
    font-weight: 600;
}

#changelog-content em {
    font-style: italic;
    color: #e9ecef;
}

#changelog-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}


