﻿.dpp-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dpp-container {
    flex: 1;
    padding-bottom: 80px; /* Enough space above footer */
}
.dpp-header {
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 999;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Search Results Container */
.dpp-container {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1000;
}

.details {
    display: grid;
    gap: 40px;
    margin-top: 30px;
}

/* Section Headings */
.section-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

/* JSON Payload Section */
.payload-section {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    z-index: 1000;
}
/*
.json-payload-container {
    background: var(--darker);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.json-content {
    color: var(--light);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}*/

/* Blockchain Section */
.blockchain-section {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    z-index: 1000;
}

.blockchain-container {
    display: flex;
    justify-content: center;
}

.blockchain-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

    .blockchain-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
    }

/* Blockchain Status */
.blockchain-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    margin-bottom: 24px;
}

    .blockchain-status.valid {
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.2);
    }

    .blockchain-status.invalid {
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.2);
    }

.status-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
}

.status-text {
    font-weight: 600;
    color: var(--dark);
}

/* Blockchain Details Grid */
.blockchain-details-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.blockchain-detail {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

    .blockchain-detail:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--gray);
    word-break: break-all;
}

.network-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.code-text {
    font-family: 'Courier New', monospace;
    background: var(--gray-50);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--gray-200);
}

/* Explorer Link */
.blockchain-explorer-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.explorer-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

    .explorer-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(58, 134, 255, 0.3);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-logo {
        justify-content: center;
    }

    .details {
        gap: 30px;
    }

    .payload-section,
    .blockchain-section {
        padding: 20px;
    }

    .blockchain-detail {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .blockchain-details-grid {
        gap: 12px;
    }

    .json-payload-container {
        /* padding: 15px;*/
    }

    .json-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .blockchain-card {
        padding: 20px;
    }

    .section-heading {
        font-size: 1.3rem;
    }

    .explorer-button {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for blockchain card */
.blockchain-card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.blockchain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/*.json-payload-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}*/

/* Tabs Styles */
.tabs-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    margin-top: 20px;
    z-index: 1001;
}

.tabs-header {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.tab-button {
    flex: 1;
    padding: 20px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
}

    .tab-button:hover {
        background: var(--gray-100);
        color: var(--dark);
    }

    .tab-button.active {
        background: var(--white);
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

.tab-icon {
    font-size: 1.2rem;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

    .tab-pane.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dpp-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    text-align: center;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--gray);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
}
