/* ================================== */
/* LAYOUT FOUNDATION */
/* ================================== */

/* Layout Utilities */
.min-h-screen {
    min-height: 100vh;
    height: auto;
    position: relative;
}

.header-gap {
    height: 120px !important;
}

/* ================================== */
/* HEADER & NAVIGATION */
/* ================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    width: 100%;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.6);
}

.navbar {
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
}

.navbar .container {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

.nav-link.active {
    color: white !important;
    font-weight: 500;
}

.logo {
    width: auto;
    height: 55px !important;
}

/* ================================== */
/* SECTION LAYOUTS */
/* ================================== */

section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-padding {
    padding: 5rem 0;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ================================== */
/* DASHBOARD LAYOUTS */
/* ================================== */

.dashboard-container {
    min-height: 100vh;
    padding: 2rem 0;
}

.dashboard-header {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

/* ================================== */
/* GRID SYSTEMS */
/* ================================== */

.stats-grid {
    display: grid;
    grid-template-areas: 
        ". top ."
        "left center right"
        ". bottom .";
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.stats-top { grid-area: top; }
.stats-left { grid-area: left; }
.stats-center { grid-area: center; }
.stats-right { grid-area: right; }
.stats-bottom { grid-area: bottom; }

/* Project Grid Enhancements */
.projects-grid .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-grid .product-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-grid .product-card .d-flex.justify-content-between {
    margin-top: auto;
}

/* ================================== */
/* POSITIONING & EFFECTS */
/* ================================== */

.blue-gradient-panels {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 0;
    pointer-events: none;
    perspective: 1000px;
}

.blue-panel {
    position: absolute;
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, rgba(0,122,255,0.2) 0%, rgba(0,0,0,0) 100%);
    transform-origin: right center;
}

.blue-panel:nth-child(1) {
    transform: rotate3d(1, 1, 0, 60deg);
}

.blue-panel:nth-child(2) {
    transform: rotate3d(1, 1, 0, 40deg);
}

.blue-panel:nth-child(3) {
    transform: rotate3d(1, 1, 0, 20deg);
}

/* ================================== */
/* NETWORK VISUALIZATION */
/* ================================== */

.network-visual {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.network-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.network-level {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.network-node {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--eco-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    position: relative;
}

.network-node.you {
    background: var(--primary-gradient);
    transform: scale(1.2);
}

/* ================================== */
/* RESPONSIVE LAYOUTS */
/* ================================== */

/* Small screens */
@media (max-width: 768px) {
    .logo {
        height: 35px !important;
    }
    
    .navbar-collapse {
        width: 100%;
    }
    
    .site-header {
        overflow-x: clip;
    }
    
    .navbar-brand {
        max-width: 70%;
    }
    
    /* Dashboard responsive */
    .dashboard-header {
        text-align: center;
    }
    
    /* Network visualization mobile */
    .network-visual {
        padding: 2rem;
    }
    
    .network-level {
        gap: 0.5rem;
    }
    
    .network-node {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.75rem;
    }
    
    /* Project responsive */
    .glass-card .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .glass-card .d-flex.justify-content-between .btn {
        text-align: center;
    }
    
    .glass-card img {
        height: 200px !important;
    }
    
    .glass-card .row.g-2 .col-6 {
        width: 100%;
        max-width: 100%;
    }
}

/* ================================== */
/* LAYOUT UTILITIES */
/* ================================== */

/* Activity Item Layout */
.activity-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

/* Activity Item Variations */
.activity-item.d-flex.justify-content-between {
    padding: 0.8rem 0;
}

.activity-item.d-flex.justify-content-between.align-items-center {
    align-items: center;
}

/* Invitation URL Layout */
.invitation-url-box {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.invitation-url-box:hover {
    filter: brightness(1.1);
}

.url-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-icon {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.invitation-url-box:hover .copy-icon {
    opacity: 1;
    transform: translateX(0);
}

.copy-icon:hover {
    color: white;
}

.copy-notification {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 8px;
}

.copy-notification.show {
    opacity: 1;
    visibility: visible;
}