/**
 * Layout Styles
 * Alaska Gun Trader Theme
 * 
 * @package Alaska_Gun_Trader
 */

/* ==========================================
   CONTAINERS & GRID
   ========================================== */
.container,
.agt-container {
    max-width: var(--agt-container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex-grow: 1;
    padding-top: var(--header-height, 140px);
}

/* Full-width sections */
.full-width-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    background: var(--agt-white);
    box-shadow: var(--agt-box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
}

/* Subtle animated accent line */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #2E4A3F 0%,
        #3d5f52 25%,
        #D94F04 50%,
        #3d5f52 75%,
        #2E4A3F 100%
    );
    background-size: 200% 100%;
    animation: headerShimmer 12s ease-in-out infinite;
}

@keyframes headerShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* On scroll - even more subtle */
.site-header.scrolled::after {
    height: 1px;
    opacity: 0.7;
}

/* Header Main */
.header-main {
    padding: 20px 0;
}

.header-content {
 display: flex;
  justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 80px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title {
    font-family: var(--agt-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--agt-gunmetal);
 text-decoration: none;
    display: flex;
    align-items: baseline;
 gap: 8px;
}

.brand-primary {
    color: var(--agt-gunmetal);
}

.brand-separator {
    color: var(--agt-orange);
    font-size: 1.5rem;
}

.brand-secondary {
    color: var(--agt-forest);
}

.site-description {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Navigation */
.main-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

.main-navigation ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0;
    flex: 0 0 auto;
}

.main-navigation a {
    color: var(--agt-gunmetal);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    transition: var(--agt-transition);
    display: inline-block;
    border-radius: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--agt-gray);
    color: var(--agt-orange);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--agt-gunmetal);
  padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

.menu-icon {
    width: 20px;
    height: 2px;
    background: var(--agt-gunmetal);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
  width: 20px;
    height: 2px;
    background: var(--agt-gunmetal);
    left: 0;
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    bottom: -6px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions .btn {
    white-space: nowrap;
}

.btn-post-listing {
    background: var(--agt-orange);
    color: var(--agt-white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--agt-transition);
    white-space: nowrap;
}

.btn-post-listing:hover {
    background: var(--agt-forest);
    color: var(--agt-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 79, 4, 0.3);
}

.btn-post-listing svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--agt-gunmetal);
    color: var(--agt-white);
    padding: 60px 20px 20px;
    margin-top: 80px;
    border-top: 4px solid var(--agt-orange);
}

.footer-widget-area {
    max-width: var(--agt-container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget-area .widget-title {
 color: var(--agt-orange);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget-area .widget {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-widget-area a:hover {
    color: var(--agt-orange);
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-area li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget-area li:last-child {
    border-bottom: none;
}

.site-info {
    max-width: var(--agt-container-width);
    margin: 30px auto 0;
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.site-info a {
 color: var(--agt-orange);
}

.site-info a:hover {
    text-decoration: underline;
}
