/* 925.de Layout CSS - Header & Footer */

/* Header consistency - override page-specific container widths */
header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--silver-light, #E8E8E8);
}
header .container,
header.container,
.header-inner {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav {
    display: flex;
    gap: 2rem;
}
nav a {
    font-size: 0.95rem;
    color: var(--gray-light, #666);
    border: none !important;
    text-decoration: none !important;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    nav { display: none; }
}

/* For Sale Badge */
.for-sale-badge {
    font-size: 0.65rem;
    color: var(--gray-light, #666);
    text-decoration: none;
    border: 1px solid var(--silver-light, #E8E8E8);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: all 0.2s;
}
.for-sale-badge:hover {
    border-color: var(--black, #1a1a1a);
    color: var(--black, #1a1a1a);
}
@media (max-width: 600px) {
    .for-sale-badge { display: none; }
}

/* Silver Price Widget */
.logo-price-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.silver-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-light, #666);
    cursor: pointer;
    position: relative;
}
.silver-price-chart {
    width: 60px;
    height: 24px;
    transition: transform 0.2s;
}
.silver-price:hover .silver-price-chart {
    transform: scaleY(1.2);
}
.silver-price-chart path {
    fill: none;
    stroke: var(--silver-dark, #A8A8A8);
    stroke-width: 1.5;
    transition: stroke 0.2s;
}
.silver-price:hover .silver-price-chart path {
    stroke: var(--black, #1a1a1a);
}
.silver-price-chart .dot {
    fill: var(--black, #1a1a1a);
    opacity: 0;
    transition: opacity 0.2s;
}
.silver-price:hover .silver-price-chart .dot {
    opacity: 1;
}
.silver-price-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.silver-price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-light, #666);
}
.silver-price-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--black, #1a1a1a);
}
.silver-price-change {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.3rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.silver-price:hover .silver-price-change {
    opacity: 1;
}
.silver-price-change.up {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}
.silver-price-change.down {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}
.silver-price-timeframe {
    font-size: 0.6rem;
    color: var(--gray-light, #666);
    margin-left: 0.2rem;
    opacity: 0.7;
}
@media (max-width: 768px) {
    .silver-price-change {
        opacity: 1;
    }
}
.silver-price-updated {
    font-size: 0.6rem;
    color: var(--gray-light, #666);
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    bottom: -14px;
    left: 0;
    white-space: nowrap;
}
.silver-price:hover .silver-price-updated {
    opacity: 1;
}
.silver-price-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.45);
    color: var(--white, #fafafa);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    z-index: 100;
    top: -42px;
    left: 0;
}
.silver-price-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.45);
}
@media (max-width: 600px) {
    .silver-price {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--black, #1a1a1a);
        padding: 0.75rem 1rem;
        z-index: 1000;
        justify-content: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .silver-price-chart { display: none; }
    .silver-price-info { flex-direction: row; gap: 0.5rem; align-items: center; }
    .silver-price-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
    .silver-price-value { font-size: 1rem; color: #fff; }
    .silver-price-change { opacity: 1 !important; }
    .silver-price-updated, .silver-price-tooltip { display: none; }
    body { padding-bottom: 60px; }
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--black);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white, #fafafa);
    z-index: 2000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-nav.active {
    display: flex;
}
.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--black, #1a1a1a);
    border: none;
}
.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--black, #1a1a1a);
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    margin-top: 4rem;
}

footer .container,
footer > .container {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    border: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo:hover {
    color: var(--silver-medium);
}

.footer-links h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.2rem;
    color: var(--silver-medium);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    border: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
