/* =========================================
   Components (Buttons, Navbar, Footer)
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(119, 0, 204, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(119, 0, 204, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-primary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    position: relative;
    padding-bottom: 4px;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link.active {
    color: var(--color-text-primary);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Responsive Navbar — See mobile.css for hamburger menu */

/* Footer
   Note: Designed to handle light/dark mode by using CSS variables. 
   If parent has a light theme, these variables should adapt. 
*/
.footer {
    background-color: transparent;
    border-top: 1px solid rgba(119, 0, 204, 0.4);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.footer-desc {
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    max-width: 280px;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-socials {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
    color: var(--color-text-primary);
}

.footer-link {
    display: block;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(119, 0, 204, 0.3);
    padding-top: var(--spacing-md);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .brand-col {
        grid-column: span 1;
    }
}

/* =========================================
   Cards (Geometric Card)
   ========================================= */

.geometric-card {
    background-color: var(--color-bg-card, #0d1633);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.geometric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(119, 0, 204, 0.15);
    border-color: rgba(119, 0, 204, 0.3);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: #fff;
}

.card-image {
    margin: calc(var(--spacing-md) * -1) calc(var(--spacing-md) * -1) var(--spacing-md) calc(var(--spacing-md) * -1);
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.card-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.tag-gradient {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--gradient-primary);
    color: #fff;
    display: inline-block;
}

.card-actions {
    margin-top: auto;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* =========================================
   Top Social Bar
   ========================================= */
.top-social-bar {
    background: rgba(13, 20, 43, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0;
    font-size: 0.75rem;
}

.top-social-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-social-text {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-weight: 500;
}

.top-social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.top-social-icon {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-social-icon svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.top-social-icon:hover {
    color: #fff;
    transform: translateY(-2px);
}
