/* Shared styles for the individual release pages (releases/*.html).
   Page-specific rules (cover image, overlay and glass-style variants, download buttons) stay inline in each page. */

/* Cover header overlay */
#cv-tdc {
    height: 75vh;
    position: relative;
}

#cv-tdc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(245, 245, 245, 0.4);
    z-index: 1;
}

body.dark-mode #cv-tdc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.port-summary {
    min-height: 130px;
}

/* Version selector */
.version-control-container {
    max-width: 600px;
    margin: 0 auto;
}

.version-dropdown {
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #252525;
    background-color: #fff;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .version-dropdown {
    background-color: #6e463fcc;
    color: #f0f0f0;
    border-color: #444;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    border: 1px solid #2b2b2b33;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.233), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.version-dropdown:hover {
    border-color: #6d99c0;
    box-shadow: 0 4px 12px rgba(41, 99, 161, 0.15);
}

.version-dropdown:focus {
    outline: none;
    border-color: #6d99c0;
    box-shadow: 0 0 0 3px rgba(109, 153, 192, 0.1);
}

.version-dropdown.expanded {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18 15 12 9 6 15'%3e%3c/polyline%3e%3c/svg%3e");
}

body.dark-mode .version-dropdown.expanded {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='18 15 12 9 6 15'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

/* Version details panel */
.version-content {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

.version-details {
    background-color: #fff;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 3px 0 15px -1px rgba(0, 0, 0, 0.15);
}

body.dark-mode .version-details {
    background-color: #6e463fcc;
    border-color: #444;
    color: #f0f0f0;
}

.version-details p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.version-details p:last-child {
    margin-bottom: 0;
}

#changesText,
.version-details p {
    text-align: left !important;
}

.pw-btn-download {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7e899a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pw-btn-download:hover {
    background-color: #6d99c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 99, 161, 0.2);
    text-decoration: none;
    color: #fff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
