/* Storm Developments — Forgejo Branding
   Matches stormdevelopments.ca navbar */

:root {
    --storm-electric: #00d4ff;
    --storm-primary: #1e90ff;
    --storm-dark: #050505;
}

/* ── Navigation Bar ── */
#storm-nav-bar {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(30, 144, 255, 0.15);
    position: relative;
    z-index: 100;
}

.storm-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.storm-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.storm-logo:hover { opacity: 0.9; }

.storm-bolt {
    font-size: 1.75rem;
    color: var(--storm-electric);
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.storm-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

#storm-nav-bar a:hover {
    text-decoration: none !important;
}

.storm-logo-main {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.storm-logo-sub {
    font-size: 0.625rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.15em;
    margin-top: 0.125rem;
}

/* Desktop Links */
.storm-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.storm-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.storm-link:hover { color: #ffffff; }
.storm-link-active { color: var(--storm-electric) !important; }

/* Products dropdown button */
.storm-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 144, 255, 0.1);
    color: var(--storm-electric);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(30, 144, 255, 0.3);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.storm-products-btn:hover {
    background: rgba(30, 144, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    color: #ffffff;
}

.storm-products-btn svg {
    transition: transform 0.2s;
}

/* Dropdown */
.storm-dropdown {
    position: relative;
}

.storm-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0.5rem;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.storm-dropdown:hover .storm-dropdown-menu,
.storm-dropdown.open .storm-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.storm-dropdown:hover .storm-products-btn svg,
.storm-dropdown.open .storm-products-btn svg {
    transform: rotate(180deg);
}

.storm-dropdown-item {
    display: block;
    padding: 0.625rem 1rem;
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s;
}

.storm-dropdown-item:hover {
    background: rgba(30, 144, 255, 0.1);
    color: var(--storm-electric);
}

/* Mobile button */
.storm-mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.storm-mobile-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #9ca3af;
    border-radius: 1px;
    transition: background 0.2s;
}

.storm-mobile-btn:hover span {
    background: #ffffff;
}

/* Mobile menu */
.storm-mobile-menu {
    display: none;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(24px);
    padding: 1rem;
}

.storm-mobile-menu.show {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.storm-mobile-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.storm-mobile-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .storm-links { display: none; }
    .storm-mobile-btn { display: flex; }
    .storm-logo-text { display: none; }
}

/* ── Storm Footer ── */
.storm-footer {
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 25%, #111111 75%, #0f0f0f 100%);
    border-top: 2px solid var(--storm-primary, #1e90ff);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.storm-footer-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(30,144,255,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0,212,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.storm-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    position: relative;
    z-index: 1;
}

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

.storm-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.storm-bolt-large {
    font-size: 2rem;
    color: #00d4ff;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.3));
}

.storm-footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
}

.storm-footer-description {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.storm-footer-description strong {
    color: #e5e7eb;
}

.storm-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    letter-spacing: 0.1em;
}

.storm-meta-divider {
    color: #1e90ff;
}

.storm-footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.storm-footer-heading::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #1e90ff, #00d4ff);
}

.storm-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.storm-footer-link {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.storm-footer-link:hover {
    color: #00d4ff !important;
}

.storm-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.storm-footer-email {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.storm-footer-email:hover {
    color: #00d4ff !important;
}

.storm-footer-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.storm-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(30,144,255,0.2);
}

.storm-footer-copyright {
    color: #6b7280;
    font-size: 0.75rem;
}

.storm-footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.storm-legal-link {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 0.75rem;
}

.storm-legal-link:hover {
    color: #00d4ff !important;
}

.storm-legal-divider {
    color: #1e90ff;
}

@media (max-width: 768px) {
    .storm-footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .storm-footer-logo { justify-content: center; }
    .storm-footer-meta { justify-content: center; }
    .storm-footer-heading::after { left: 50%; transform: translateX(-50%); }
    .storm-footer-contact { align-items: center; }
    .storm-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
