/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Header */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
}

.nav-subtitle {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding-left: 16px;
    border-left: 1px solid #e2e8f0;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

/* Chain Switcher */
.chain-switcher {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.chain-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.chain-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.chain-btn.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.chain-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain-name {
    font-weight: 600;
}

/* Navigation Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(59, 130, 246, 0.25);
}

.social-link svg {
    transition: all 0.2s ease;
}

/* Desktop/Mobile Display Control */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

/* Ensure mobile dropdown is hidden on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: flex !important;
    }
}

/* Chain Dropdown for Mobile */
.chain-dropdown {
    display: flex;
    align-items: center;
}

.chain-select {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    padding-right: 32px;
    min-width: 120px;
}

.chain-select:hover {
    border-color: #3b82f6;
    background-color: #ffffff;
}

.chain-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0 16px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #1e293b;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #cbd5e1;
}

/* Overview Cards Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.overview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.overview-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px 0 rgba(59, 130, 246, 0.15);
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px 0 rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.overview-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.overview-content {
    flex: 1;
}

.overview-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}

.overview-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Panel Styles */
.info-panel, .data-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-icon {
    font-size: 20px;
}

.panel-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.panel-controls {
    display: flex;
    gap: 16px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.control-select {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 32px 6px 12px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.control-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Deployment Grid */
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px;
}

.deployment-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.deployment-step:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px 0 rgba(59, 130, 246, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.step-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.code-block {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.code-header {
    background: #374151;
    color: #d1d5db;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    border-bottom: 1px solid #4b5563;
}

.code-content {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    word-break: break-all;
}

.code-example {
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}

.copy-btn {
    background: transparent;
    border: 1px solid #4b5563;
    color: #9ca3af;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #374151;
    color: #d1d5db;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    color: #059669;
    font-size: 13px;
    font-weight: 500;
}

.claim-button {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.claim-button:hover {
    background: #2563eb;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.data-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13px;
}

.data-table tr:hover {
    background: #f8fafc;
}

.token-name {
    font-weight: 600;
    color: #1e293b;
}

.token-symbol {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    margin-left: 6px;
}

.address-link, .tx-hash-link {
    color: #3b82f6;
    text-decoration: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.address-link:hover, .tx-hash-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.deployer-address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.deploy-time {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

/* Loading and Empty States */
.loading-state {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #64748b;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: #64748b;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-message {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.empty-description {
    font-size: 14px;
    color: #64748b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 12px 16px;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .nav-brand {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    .chain-dropdown {
        flex: 1;
    }
    

    
    .nav-stats {
        display: none;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0;
    }
    
    .deployment-grid {
        gap: 16px;
    }
    
    .panel-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .panel-controls {
        margin-top: 0;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .data-table thead {
        display: none;
    }
    
    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
    }
    
    .data-table tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    }
    
    .data-table td {
        border: none;
        padding: 8px 0;
        position: relative;
        padding-left: 40%;
        text-align: right;
    }
    
    .data-table td:before {
        content: attr(data-label) ":";
        position: absolute;
        left: 0;
        width: 35%;
        font-weight: 600;
        color: #64748b;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }
    
    .data-table td:first-child:before {
        content: "Index:";
    }
}

/* Utility Classes */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fw-mono {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Contract Info State */
.contract-info-state {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #3b82f6;
}

.info-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.info-message {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.info-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Error State */
.error-state {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #dc2626;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.error-message {
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 8px;
}

.error-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.retry-button {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.retry-button:hover {
    background: #2563eb;
}

/* Copy Success Notification */
.copy-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #059669;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px 0 rgba(5, 150, 105, 0.3);
    z-index: 1000;
    animation: copyFadeInOut 2s ease-in-out;
}

@keyframes copyFadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
} 