/* ===== FOOTER AFFILIATES SECTION ===== */

.footer-affiliates {
    flex-shrink: 0; /* Keep this */
    background: var(--body-bg-color);
    padding: 0;
    border: none;
    width: 100%;
}

.footer-affiliates {
    max-width: 1200px;
    margin: 0 auto;
    border: none;
    margin-bottom: 5em;
   display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
}

.footer-affiliates .affiliates-header {
    color: var(--accent1);
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 700;
    display: block;
    width: 100%;
    letter-spacing: 3px;
    padding: .5em 2em;
    text-align: center;
    margin: 0;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--accent1);
}

.footer-affiliates img {
    transition: border-color 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.footer-affiliates img:hover {
    opacity: 0.8;
    border-color: var(--accent1);
}

/* ===== FOOTER SEARCH SECTION ===== */

.footer-search {
    padding: 20px 0;
    margin: 20px 0;
}

.search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 0 15px;
}

.search-wrapper form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.advanced-search-link {
    white-space: nowrap;
    font-weight: normal;
    color: var(--accent1);
    text-decoration: none;
    padding-left: 15px;
}

.advanced-search-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== MAIN FOOTER SECTION ===== */

.site-footer {
    flex-shrink: 0;
    background: var(--body-bg-color, #09090C);
    color: var(--text-color-muted, rgba(228,229,231,.85));
    padding: 20px;
    font-family: 'Verdana', 'Arial', sans-serif;
    font-size: 10px;
    line-height: 1.5;
    border-top: 1px solid var(--block-dark, #11151C);
    width: 100%;
    position: relative;
    clear: both;
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
}

.footer-links li {
  display: inline-block;
  margin: 0 15px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

/* Left side - Skin dropdown */
.footer-dropdown {
    flex: 0 0 auto;
}

.footer-dropdown select {
    background: var(--block-med, #151B25);
    color: var(--text-color-muted, rgba(228,229,231,.85));
    border: 1px solid var(--block-light, #19212E);
    padding: 5px 10px;
    border-radius: 0;
    font-size: 11px;
    font-family: 'Verdana', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-dropdown select:hover {
    border-color: var(--accent1, #DEA663);
    color: var(--text-color, #E4E5E7);
    background: var(--block-light, #19212E);
}

.footer-dropdown select:focus {
    outline: none;
    border-color: var(--accent1, #DEA663);
}

/* Right side - All credits stacked */
.footer-credits {
    flex: 0 0 auto;
    text-align: right;
}

.footer-credits p {
    margin: 2px 0;
    font-size: 10px;
    color: var(--text-color-muted, rgba(228,229,231,.85));
    line-height: 1.4;
}

.footer-credits .skinning-credit {
    font-style: italic;
    color: var(--text-color, #E4E5E7);
    margin-bottom: 5px;
}

.footer-credits a {
    color: var(--accent1, #DEA663);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: var(--accent2, #BF8441);
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .footer-affiliates .maintitle {
        font-size: 11px;
        padding: 8px 15px;
        text-align: center;
    }

    .footer-affiliates .row2 {
        justify-content: center;
        padding: 10px !important;
    }

    .site-footer {
        padding: 15px 10px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer-dropdown {
        order: 2;
    }

    .footer-credits {
        order: 1;
        text-align: center;
    }
    
    .search-wrapper {
        justify-content: center;
        flex-direction: column;
    }
    
    .advanced-search-link {
        padding-left: 0;
    }
}