/* Modern Footer Styles - Dbx22 Theme */

/* Footer Base */
#site-footer {
    background: #0f0f10;
    color: #a0a0a0;
    padding: 60px 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #1a1a1a;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Flex Container for Desktop (Logo Left, Social Right) */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1a1a1a;
}

/* Logo Section */
.footer-brand .logo {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
}

.footer-brand .logo-type {
    font-size: 32px;
    font-weight: 800;
    color: #ff4d4d;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.footer-brand .logo-desc {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Social Section */
.footer-social-section {
    text-align: right;
}

.footer-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: block;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.social-link:hover {
    color: #ff4d4d;
}

.social-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* Copyright / Bottom Section */
.footer-meta {
    padding-top: 10px;
    font-size: 12px;
    color: #555;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.copyright-text {
    flex: 1;
    max-width: 650px;
}

.copyright-text p {
    margin: 0;
    line-height: 1.7;
}

.contact-link {
    color: #888;
    text-decoration: none;
    border-bottom: 1px dotted #888;
    transition: all 0.2s;
}

.contact-link:hover {
    color: #ff4d4d;
    border-bottom-color: #ff4d4d;
}

.footer-info {
    text-align: right;
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #site-footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 30px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .footer-social-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-brand .logo {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 20px;
    }

    .footer-info {
        text-align: center;
        white-space: normal;
        margin-top: 0;
    }
    
    .copyright-text {
        max-width: 100%;
    }
}

/* Overrides: keep two columns on mobile, place social at right */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: initial;
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .footer-social-section {
        margin-left: auto;
        text-align: right;
    }
    .footer-brand .logo {
        align-items: flex-start;
    }
}
@media (max-width: 768px) {
  .footer-container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .footer-social-section { margin-left: 0; text-align: right; }
  .footer-title { font-size: 10.5px; margin: 0 0 6px; letter-spacing: 1.2px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr auto; gap: 12px; }
  .footer-title { font-size: 10px; }
}
@media (max-width: 360px) {
  .footer-container { grid-template-columns: 1fr auto; column-gap: 8px; }
  .footer-brand .logo-type { font-size: 22px; letter-spacing: -0.5px; }
  .footer-brand .logo-desc { font-size: 11px; }
  .footer-title { font-size: 9.5px; letter-spacing: 0.9px; margin: 0 0 4px; }
  .social-links { gap: 8px; }
}
@media (max-width: 320px) {
  /* Basligi ikonla ayni satira al, metinleri kisalt */
  .footer-social-section { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
  .footer-title { margin: 0; font-size: 9px; letter-spacing: 0.8px; white-space: nowrap; }
  .social-links { display: inline-flex; gap: 8px; }
  .social-link span { display: none; } /* yalnizca ikon kalsin */
  .social-link i { font-size: 18px; }
}
/* Fine-tune vertical alignment: top-align items on small screens */
@media (max-width: 768px) {
  .footer-container { align-items: start; }
  .footer-social-section { align-self: start; }
  .footer-brand .logo { margin: 0; }
}
@media (max-width: 360px) {
  .footer-container { align-items: start; }
  .footer-social-section { align-self: start; }
}
@media (max-width: 320px) {
  .footer-container { align-items: start; }
  .footer-social-section { align-self: start; }
}
/* Micro align: match BIZI TAKIP EDIN baseline with logo */
@media (max-width: 768px) {
  .footer-title { line-height: 1; transform: translateY(2px); }
  .footer-social-section { padding-top: 2px; }
}
@media (max-width: 360px) {
  .footer-title { transform: translateY(3px); }
}
/* Baseline alignment fix: align social title with brand title on small screens */
@media (max-width: 768px) {
  .footer-container { align-items: baseline; }
  .footer-social-section { align-self: baseline; }
  .footer-title { transform: none; line-height: 1; margin: 0; }
}
@media (max-width: 360px) {
  .footer-container { align-items: baseline; }
  .footer-social-section { align-self: baseline; }
}
@media (max-width: 320px) {
  .footer-container { align-items: baseline; }
  .footer-social-section { align-self: baseline; }
}
/* === Final overrides: Enforce 50/50 columns across all widths === */
.footer-container { display: grid !important; grid-template-columns: 1fr 1fr !important; align-items: center !important; gap: 16px; }
.footer-brand { justify-self: start; align-self: center; }
.footer-social-section { justify-self: end; align-self: center; text-align: right; margin: 0; padding: 0; }
.footer-title { margin: 0; line-height: 1.1; transform: none !important; }

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr 1fr !important; gap: 14px; }
  .footer-title { font-size: 10.5px; letter-spacing: 1.1px; }
}
@media (max-width: 480px) {
  .footer-container { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .footer-title { font-size: 10px; }
}
@media (max-width: 360px) {
  .footer-container { grid-template-columns: 1fr 1fr !important; column-gap: 10px; }
}
@media (max-width: 320px) {
  .footer-container { grid-template-columns: 1fr 1fr !important; column-gap: 8px; }
}
.footer-title{transform:none !important}
@media (max-width:768px){.footer-container{align-items:center !important}.footer-social-section{align-self:center !important}.footer-title{margin:0;line-height:1.1}}
@media (max-width:360px){.footer-container{align-items:center !important}.footer-title{margin:0}}
@media (max-width:320px){.footer-container{align-items:center !important}.footer-title{margin:0}}
/* Force layout on footer-inner as 2 equal columns; flatten container */
.footer-inner{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:center!important;gap:16px;border-bottom:1px solid #1a1a1a;margin-bottom:50px;padding-bottom:40px}
.footer-container{display:contents!important}
.footer-brand{justify-self:start;align-self:center}
.footer-social-section{justify-self:end;align-self:center;text-align:right;margin:0;padding:0}
@media(max-width:768px){.footer-inner{grid-template-columns:1fr 1fr!important;gap:12px;margin-bottom:30px;padding-bottom:30px}}
@media(max-width:360px){.footer-inner{grid-template-columns:1fr 1fr!important;column-gap:8px}}
@media(max-width:320px){.footer-inner{grid-template-columns:1fr 1fr!important;column-gap:6px}}
@media (max-width: 320px) {
	#site-footer {
	padding: 10px 0 20px;
    }
    #site-footer .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 28px !important;
    padding-bottom: 24px !important;
	}
	#site-footer .footer-brand, #site-footer .footer-social, #site-footer .footer-meta {
    flex: 1 1 110px;
    min-width: 220px;
    padding: 10px 15px;
    box-sizing: border-box;
	}
  .footer-brand .logo-type {
	font-size: 52px;
	letter-spacing: -0.5px;
    }

  .footer-social-section {
	display: none;
	}

  .footer-title {
    margin: 0;
    font-size: 9px;
    letter-spacing: 0.8px;
    white-space: nowrap;
  }

  .social-links {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
  }
}
