/* ===================================
   SatoshiConclaveFeed - Layout Styles
   =================================== */

/* Navbar - Modern Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(249, 115, 22, 0.05);
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover .navbar-brand-icon {
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: rotate(-5deg) scale(1.05);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.375rem;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.3);
}

.navbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.75rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.navbar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.05));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.navbar-link:hover {
    color: white;
    background: rgba(51, 65, 85, 0.6);
    transform: translateY(-1px);
}

.navbar-link:hover::before {
    opacity: 1;
}

.navbar-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.navbar-link.active i {
    color: #fb923c;
}

.navbar-link i {
    transition: transform 0.25s ease;
}

.navbar-link:hover i {
    transform: scale(1.1);
}

.navbar-group {
    position: relative;
}
.navbar-group-btn {
    cursor: pointer;
}
.navbar-group.active .navbar-group-btn {
    color: white;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.navbar-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 16rem;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 1200;
}
.navbar-group.open .navbar-dropdown {
    display: flex;
}
.navbar-group .group-arrow {
    transition: transform 0.2s ease;
}
.navbar-group.open .group-arrow {
    transform: rotate(180deg);
}

/* Mobile Menu */
.navbar-mobile-toggle {
    display: none;
    padding: 0.625rem;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.navbar-mobile-toggle:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.3);
}

@media (max-width: 1024px) {
    .navbar-nav {
        display: none;
    }

    .navbar-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid rgba(51, 65, 85, 0.5);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        gap: 0.25rem;
    }

    .navbar-nav.open .navbar-link {
        padding: 0.875rem 1rem;
        border-radius: 0.75rem;
    }
    .navbar-nav.open .navbar-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: 1px solid rgba(51, 65, 85, 0.5);
        margin-left: 2.25rem;
    }
    .navbar-nav.open .navbar-group.open .navbar-dropdown {
        display: flex;
    }
}

/* Footer - Modern Design */
.footer {
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.95));
    border-top: 1px solid rgba(51, 65, 85, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(249, 115, 22, 0.3), rgba(59, 130, 246, 0.3), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05), transparent 70%);
    pointer-events: none;
}

.footer-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
    color: #fb923c;
    transform: translateX(4px);
}

.footer-link i {
    transition: transform 0.3s ease;
}

.footer-link:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .footer {
        padding-top: 2rem;
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.page-header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    margin-bottom: 1.5rem;
}

.page-header-badge i {
    color: var(--color-primary);
}

.page-header-badge span {
    color: #fb923c;
    font-size: 0.875rem;
    font-weight: 600;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 4rem;
    }
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .grid-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Stat Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Modals */
.input-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.input-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
}

.input-modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: #0f172a;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1.5rem;
    padding: 2rem;
    z-index: 10;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-modal.open .input-modal-content {
    transform: scale(1) translateY(0);
}

/* Default (Orange) Theme for Confirm Modal */
.confirm-modal-header {
    color: #fb923c; /* orange-400 */
}

.confirm-modal-submit {
    background-color: #ea580c; /* orange-600 */
    border-color: rgba(249, 115, 22, 0.5);
}

.confirm-modal-submit:hover {
    background-color: #f97316; /* orange-500 */
}

/* Numeric Controls Global */
.num-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.625rem;
    color: #94a3b8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
}

.num-control-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.num-control-btn.minus { left: 0.5rem; }
.num-control-btn.plus { right: 0.5rem; }

/* Portfolio Specific Overrides for Purple Theme */
.portfolio-container .confirm-modal-header {
    color: #a855f7; /* purple-500 */
}

.portfolio-container .confirm-modal-submit {
    background-color: #9333ea; /* purple-600 */
    border-color: rgba(168, 85, 247, 0.5);
}

.portfolio-container .confirm-modal-submit:hover {
    background-color: #a855f7; /* purple-500 */
}

.portfolio-container .num-control-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.4);
}

.portfolio-container .relative:focus-within input {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1);
}
