/* CSS Variables based on Monad's design system */
:root {
    /* Colors */
    --swatch--light: #ffffff;
    --swatch--dark: #1a1a1a;
    --swatch--brand: #6366f1;
    --swatch--brand-dark: #4f46e5;
    --swatch--brand-text: #ffffff;
    --swatch--light-secondary: #f3f4f6;
    --swatch--transparent: transparent;
    
    /* Theme colors */
    --theme--background: var(--swatch--light);
    --theme--text: var(--swatch--dark);
    --theme--border: var(--swatch--light-secondary);
    
    /* Typography */
    --font--primary-family: 'Inter', Arial, sans-serif;
    --text-main--font-size: 1rem;
    --text-main--line-height: 1.5;
    --text-main--letter-spacing: -0.01em;
    
    /* Spacing */
    --space--small: 1.5rem;
    --space--medium: 2rem;
    --space--large: 3rem;
    --space--xlarge: 4rem;
    
    /* Border radius */
    --radius--main: 1rem;
    --radius--small: 0.5rem;
    
    /* Shadows */
    --shadow--light: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow--medium: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow--large: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font--primary-family);
    font-size: var(--text-main--font-size);
    line-height: var(--text-main--line-height);
    letter-spacing: var(--text-main--letter-spacing);
    color: var(--theme--text);
    background-color: var(--theme--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: var(--theme--background);
    border-bottom: 1px solid var(--theme--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow--light);
    flex-shrink: 0;
    flex-grow: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--swatch--brand) 0%, var(--swatch--brand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.dev-tag {
    background: var(--swatch--brand);
    color: var(--swatch--brand-text);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius--small);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.beta-tag {
    background: var(--swatch--brand);
    color: var(--swatch--brand-text);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius--small);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Navigation */
.navbar {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--theme--text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius--small);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: var(--swatch--light-secondary);
    color: var(--swatch--brand);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--swatch--brand) 0%, var(--swatch--brand-dark) 100%);
    color: var(--swatch--brand-text);
}

.nav-icon {
    font-size: 1.1rem;
}

.nav-text {
    font-weight: 500;
}

/* Wallet Section */
.wallet-section {
    flex-shrink: 0;
    position: relative;
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--swatch--brand) 0%, var(--swatch--brand-dark) 100%);
    color: var(--swatch--brand-text);
    border: none;
    border-radius: var(--radius--small);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow--light);
}

.connect-wallet-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow--medium);
}

.wallet-icon {
    font-size: 1.1rem;
}

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

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--swatch--light-secondary);
    border: 1px solid var(--theme--border);
    border-radius: var(--radius--small);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-btn:hover {
    background: var(--swatch--light);
    border-color: var(--swatch--brand);
}

.profile-icon {
    font-size: 1.1rem;
}

.wallet-address {
    font-weight: 500;
    color: var(--theme--text);
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.2s ease;
}

.profile-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--swatch--light);
    border: 1px solid var(--theme--border);
    border-radius: var(--radius--small);
    box-shadow: var(--shadow--medium);
    z-index: 1000;
    margin-top: 0.25rem;
    display: none;
}

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

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--theme--border);
}

.dropdown-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.full-address {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--theme--text);
    word-break: break-all;
}

.dropdown-actions {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--theme--text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--swatch--light-secondary);
}

.dropdown-item.disconnect {
    color: #ef4444;
}

.dropdown-item.disconnect:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-icon {
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: var(--theme--text);
    transition: all 0.2s ease;
}

/* Make sure footer doesn't grow */
.footer {
    flex-shrink: 0;
    flex-grow: 0;
    padding: var(--space--medium) 0;
    border-top: 1px solid var(--theme--border);
    text-align: center;
}

/* Main content takes remaining space */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: var(--space--large) 0;
}

.hero-section {
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--swatch--dark) 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--swatch--brand);
    font-weight: 500;
    margin-bottom: var(--space--xlarge);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space--medium);
    margin-bottom: var(--space--xlarge);
}

.feature-card {
    background: var(--swatch--light);
    border: 1px solid var(--theme--border);
    border-radius: var(--radius--main);
    padding: var(--space--medium);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow--light);
}

.feature-card.highlight-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
    border: 2px solid var(--swatch--brand);
    position: relative;
    overflow: hidden;
}

.feature-card.highlight-card::before {
    content: "ADVANTAGE";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--swatch--brand);
    color: var(--swatch--brand-text);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-bottom-left-radius: var(--radius--small);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow--medium);
    border-color: var(--swatch--brand);
}

.feature-card.highlight-card:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--theme--text);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Formats section */
.formats-section {
    margin-bottom: var(--space--xlarge);
}

.formats-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space--medium);
    text-align: center;
}

.formats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.format-tag {
    background: linear-gradient(135deg, var(--swatch--brand) 0%, var(--swatch--brand-dark) 100%);
    color: var(--swatch--brand-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius--main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.format-tag:hover {
    transform: scale(1.05);
}

/* Lineup preview */
.lineup-preview {
    background: var(--swatch--light);
    border: 1px solid var(--theme--border);
    border-radius: var(--radius--main);
    padding: var(--space--medium);
    box-shadow: var(--shadow--light);
}

.lineup-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.lineup-positions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.position {
    background: var(--swatch--light-secondary);
    border: 1px solid var(--theme--border);
    padding: 0.5rem 1rem;
    border-radius: var(--radius--small);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--theme--text);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--swatch--brand);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-weight: 500;
    color: var(--swatch--brand);
}

.footer-text {
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--theme--background);
        border-top: 1px solid var(--theme--border);
        padding: 1rem;
        box-shadow: var(--shadow--medium);
        margin-left: 0;
    }
    
    .navbar.mobile-open {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-item {
        justify-content: flex-start;
        width: 100%;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .wallet-section {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .formats-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .lineup-positions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 1rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .dev-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }
    
    .connect-wallet-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .connect-wallet-btn span:last-child {
        display: none;
    }
    
    .profile-btn {
        padding: 0.5rem 0.75rem;
    }
    
    .wallet-address {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
}

/* Footer Styles - Add these to your existing style.css */

.footer {
    flex-shrink: 0;
    flex-grow: 0;
    background: var(--theme--background);
    border-top: 1px solid var(--theme--border);
    padding: var(--space--large) 0 var(--space--medium) 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Grid - 3 columns */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space--large);
    margin-bottom: var(--space--large);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme--text);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--swatch--brand);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--theme--border);
    padding-top: var(--space--medium);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space--medium);
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--swatch--brand) 0%, var(--swatch--brand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 300px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    text-align: right;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

.network-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.network-label {
    color: #666;
}

.network-name {
    color: var(--swatch--brand);
    font-weight: 500;
}

/* Status indicator styles (if not already in your CSS) */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--swatch--brand);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-weight: 500;
    color: var(--swatch--brand);
    font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space--medium);
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space--medium);
    }
    
    .footer-brand-section {
        align-items: center;
    }
    
    .footer-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--space--medium) 0;
    }
    
    .footer-grid {
        gap: var(--space--small);
    }
    
    .footer-bottom-content {
        gap: var(--space--small);
    }
    
    .footer-brand {
        font-size: 1.25rem;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
}