/* AuraChain Explorer Styles */

/* Explorer Hero Section */
.explorer-hero {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.explorer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23667eea" stop-opacity="0.1"/><stop offset="100%" stop-color="%23667eea" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="800" r="200" fill="url(%23a)"/></svg>');
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.search-suggestions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion:hover {
    background: rgba(102, 126, 234, 0.3);
    color: white;
}

/* Network Stats */
.network-stats {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.pending {
    color: #f59e0b;
}

.stat-change.negative {
    color: #ef4444;
}

/* Explorer Tabs */
.explorer-tabs {
    padding: 60px 0;
}

.tab-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tab-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.refresh-btn {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.refresh-icon {
    transition: transform 0.3s ease;
}

.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

/* Blocks Table */
.blocks-table {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 100px 80px 1fr 80px 100px;
    gap: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.blocks-list {
    max-height: 600px;
    overflow-y: auto;
}

.block-item {
    display: grid;
    grid-template-columns: 1fr 100px 80px 1fr 80px 100px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.block-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.block-item:last-child {
    border-bottom: none;
}

.block-number {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.block-number:hover {
    text-decoration: underline;
}

.block-age {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.block-txns {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.block-miner {
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    font-size: 0.85rem;
}

.block-size {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.block-gas {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Transactions Table */
.transactions-table {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
}

.transactions-table .table-header {
    grid-template-columns: 2fr 100px 100px 1.5fr 1.5fr 120px 80px;
}

.transaction-item {
    display: grid;
    grid-template-columns: 2fr 100px 100px 1.5fr 1.5fr 120px 80px;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.transaction-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.transaction-hash {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.transaction-hash:hover {
    text-decoration: underline;
}

.transaction-value {
    color: #10b981;
    font-weight: 600;
}

.transaction-fee {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Wallet Explorer */
.wallet-search {
    display: flex;
    gap: 10px;
}

.wallet-search input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
}

.wallet-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.wallet-search button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wallet-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 30px;
    margin-top: 20px;
}

/* Contracts Grid */
.contract-search {
    display: flex;
    gap: 10px;
}

.contract-search input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
}

.contract-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contract-search button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contract-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 20px;
    transition: all 0.3s ease;
}

.contract-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

.contract-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.contract-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: #667eea;
    word-break: break-all;
    margin-bottom: 15px;
}

.contract-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.contract-stat {
    text-align: center;
}

.contract-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.contract-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.contract-actions {
    display: flex;
    gap: 10px;
}

.contract-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contract-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* Mining Dashboard */
.mining-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mining-status {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hash-rate {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.mining-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.mining-charts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 20px;
}

.chart-container h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.chart {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.mining-pools {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 20px;
}

.mining-pools h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.pool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pool-item:last-child {
    border-bottom: none;
}

.pool-name {
    font-weight: 600;
    color: white;
}

.pool-hashrate {
    color: #10b981;
    font-weight: 600;
}

.pool-percentage {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        flex: none;
        min-width: 120px;
    }
    
    .table-header,
    .block-item,
    .transaction-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mining-dashboard {
        grid-template-columns: 1fr;
    }
    
    .contracts-grid {
        grid-template-columns: 1fr;
    }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #a0aec0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-details {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* Simple Clean Footer Styles */
.simple-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-right {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
