/* Runes.dog - Master Theme CSS for Consistent Styling */

/* Logo Styling - Consistent Across All Pages */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');

.text-logo {
    font-family: 'Montserrat', 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    font-size: 2rem !important;
    color: #FFA500 !important;
    letter-spacing: 0.05em !important;
    user-select: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.5) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.text-logo:hover {
    transform: translateY(-2px) !important;
}

.rune-char {
    color: #FFA500 !important;
    text-shadow: 
        0 0 8px #FFA500,
        0 0 12px #FF6B35,
        0 0 16px rgba(255, 165, 0, 0.6),
        0 0 20px rgba(255, 107, 53, 0.4) !important;
    font-weight: 900 !important;
    position: relative !important;
    display: inline-block !important;
    animation: runeGlow 3s ease-in-out infinite alternate !important;
}

@keyframes runeGlow {
    from {
        text-shadow: 
            0 0 8px #FFA500,
            0 0 12px #FF6B35,
            0 0 16px rgba(255, 165, 0, 0.6);
    }
    to {
        text-shadow: 
            0 0 12px #FFA500,
            0 0 18px #FF6B35,
            0 0 24px rgba(255, 165, 0, 0.8),
            0 0 30px rgba(255, 107, 53, 0.6);
    }
}

/* Responsive Logo Sizing */
@media (max-width: 768px) {
    .text-logo {
        font-size: 1.3rem !important;
        letter-spacing: 0.02em !important;
    }
}

@media (max-width: 480px) {
    .text-logo {
        font-size: 1.0rem !important;
        letter-spacing: -0.02em !important;
    }
}

@media (max-width: 360px) {
    .text-logo {
        font-size: 0.9rem !important;
        letter-spacing: -0.03em !important;
    }
}

/* Navigation Styling - Consistent */
.navbar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    background: rgba(10, 20, 40, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3) !important;
}

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

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 2rem !important;
}

.nav-menu a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
}

.nav-menu a:hover {
    color: #ffa500 !important;
    background: rgba(255, 165, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.nav-menu a.active {
    background: linear-gradient(45deg, #ffa500, #ff6b35) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4) !important;
}

/* Dropdown Styling - Consistent Across All Pages */
.dropdown {
    position: relative !important;
}

.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
}

.dropdown-toggle:hover {
    color: #ffa500 !important;
    background: rgba(255, 165, 0, 0.1) !important;
    transform: translateY(-2px) !important;
}

.dropdown-arrow {
    font-size: 0.8rem !important;
    transition: transform 0.3s ease !important;
    color: inherit !important;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg) !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: rgba(0, 9, 17, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 165, 0, 0.3) !important;
    border-radius: 10px !important;
    min-width: 200px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
    list-style: none !important;
    padding: 0.5rem 0 !important;
    margin: 0.5rem 0 0 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-menu a {
    display: block !important;
    padding: 0.75rem 1.5rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    background: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.dropdown-menu a:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: #ffa500 !important;
    transform: none !important;
}

.dropdown-menu a.active {
    background: linear-gradient(45deg, #ffa500, #ff6b35) !important;
    color: #000 !important;
    font-weight: 600 !important;
}

/* Add invisible hover area for better UX */
.dropdown::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: -15px !important;
    right: -15px !important;
    height: 15px !important;
    z-index: 999 !important;
}

/* Wallet Button Styling - Consistent */
.wallet-container {
    position: relative !important;
    display: inline-block !important;
}

.wallet-connect-btn {
    background: linear-gradient(45deg, #ffa500, #ff6b35) !important;
    color: #000 !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.wallet-connect-btn::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.1) 0%, transparent 50%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.wallet-connect-btn:hover::before {
    opacity: 1 !important;
}

.wallet-connect-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(255, 165, 0, 0.6) !important;
}

.wallet-connect-btn.connected {
    background: linear-gradient(45deg, #4caf50, #ffa500) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4) !important;
}

.wallet-connect-btn.connected:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6) !important;
    transform: translateY(-3px) !important;
}

/* Wallet Dropdown - Consistent Styling */
.wallet-dropdown {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: rgba(10, 20, 40, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 165, 0, 0.3) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    min-width: 250px !important;
    margin-top: 0.5rem !important;
    z-index: 1001 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.wallet-dropdown.active {
    display: block !important;
}

.dropdown-item {
    padding: 0.75rem 1rem !important;
    cursor: pointer !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.dropdown-item:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: #ffa500 !important;
}

.dropdown-item:last-child {
    margin-bottom: 0 !important;
}

.wallet-address-full {
    font-family: monospace !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    color: #4CAF50 !important;
    word-break: break-all !important;
    margin-bottom: 1rem !important;
}

/* Mobile Menu Styling - Consistent */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column !important;
    cursor: pointer !important;
    padding: 0.75rem !important;
    min-width: 48px !important;
    min-height: 48px !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 165, 0, 0.1) !important;
}

.mobile-menu-toggle span {
    width: 25px !important;
    height: 3px !important;
    background: #ffa500 !important;
    margin: 3px 0 !important;
    transition: 0.3s !important;
    border-radius: 2px !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px) !important;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px) !important;
}

.mobile-menu {
    position: fixed !important;
    top: 80px !important;
    left: -100% !important;
    width: 100% !important;
    height: calc(100vh - 80px) !important;
    background: rgba(10, 20, 40, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    z-index: 999 !important;
}

.mobile-menu.active {
    left: 0 !important;
}

.mobile-menu ul {
    list-style: none !important;
    padding: 2rem 0 !important;
    margin: 0 !important;
}

.mobile-menu a {
    display: flex !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 1.25rem 2rem !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    min-height: 56px !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.mobile-menu .menu-parent {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.25rem 2rem !important;
    cursor: pointer !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    min-height: 56px !important;
    user-select: none !important;
}

.mobile-menu .menu-parent:hover {
    background: rgba(255, 165, 0, 0.1) !important;
    color: #ffa500 !important;
}

.mobile-menu .menu-parent .arrow {
    font-size: 0.8rem !important;
    transition: transform 0.3s ease !important;
    color: #ffa500 !important;
}

.mobile-menu .menu-parent.expanded .arrow {
    transform: rotate(180deg) !important;
}

.mobile-menu .submenu {
    max-height: 0 !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.4) !important;
    transition: max-height 0.4s ease !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-menu .submenu.expanded {
    max-height: 400px !important;
}

.mobile-menu .submenu li {
    margin: 0 !important;
}

.mobile-menu .submenu a {
    padding: 1rem 3rem !important;
    font-size: 1rem !important;
    border-bottom: 1px solid rgba(255, 165, 0, 0.1) !important;
    color: #cccccc !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

.mobile-menu .submenu a:hover {
    background: rgba(255, 165, 0, 0.15) !important;
    color: #ffa500 !important;
}

.mobile-menu a:hover, .mobile-menu a.active {
    background: rgba(255, 165, 0, 0.2) !important;
    color: #ffa500 !important;
}

/* Page Content Styling - Consistent */
.main-content {
    margin-top: 100px !important;
    padding: 2rem !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-header {
    text-align: center !important;
    margin-bottom: 3rem !important;
}

.page-header h1 {
    font-size: 3rem !important;
    color: #ffa500 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.5) !important;
}

.page-header p {
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    color: #e0e0e0 !important;
}

/* Responsive Design - Universal */
@media (max-width: 768px) {
    .nav-menu { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }
    .nav-container { padding: 0 1rem !important; }
    .main-content { padding: 2rem 1rem !important; }
    .page-header h1 { font-size: 2rem !important; }
    
    /* Ensure all buttons are touch-friendly */
    button, .btn, .action-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
    
    /* Grid layouts become single column */
    .features-grid, .exchanges-grid, .token-grid, .donation-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Table responsive */
    .companies-table, table {
        overflow-x: auto !important;
        font-size: 0.85rem !important;
    }
    
    /* Modal sizing */
    .modal-content {
        max-width: 95% !important;
        max-height: 85% !important;
        margin: 1rem !important;
    }
}

@media (max-width: 480px) {
    .page-header h1 { font-size: 1.5rem !important; }
    .main-content { padding: 1rem !important; }
    
    /* Even smaller buttons for very small screens */
    .nav-container { padding: 0 0.5rem !important; }
    
    /* Cards and content spacing */
    .feature-card, .donation-card, .exchange-card {
        padding: 1rem !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Text sizing */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
}

/* Background and Body - Consistent */
body {
    font-family: 'Arial', sans-serif !important;
    background: linear-gradient(180deg, #0a1428 0%, #1e3a5f 50%, #2d4f73 100%) !important;
    color: #ffffff !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
}