/* Shared site chrome — nav, dropdowns, utilities */

.gradient-text {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.site-nav,
.site-nav .container,
.site-nav .flex {
    overflow: visible;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.dropdown-toggle .chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    display: inline-block;
}

.dropdown.open .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: #ffffff !important;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    padding: 8px;
    z-index: 200;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #1f2937 !important;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.08);
    color: #ff6b35 !important;
}

.dropdown-item .item-text .item-name {
    display: block;
    font-weight: 600;
    color: #111827;
}

.dropdown-item .item-text .item-desc {
    display: block;
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 1px;
}

.dropdown-item:hover .item-text .item-name,
.dropdown-item:hover .item-text .item-desc {
    color: inherit;
}

.item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mobile-products-list {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.mobile-products-list.open {
    display: block;
}

.loading-shimmer {
    background: linear-gradient(90deg, #1a1a1a 25%, #262626 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.12));
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
}

.project-related-card {
    display: block;
    background: #111;
    border: 1px solid #262626;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.project-related-card:hover {
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.reading-tag-muted {
    background: rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    border-color: #333;
}
