/* Page-specific Styles - Pool Detail */
.bech32-id {
    word-break: break-all;
}

/* Hero Section */
.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-container * {
    margin: 0.5rem 0;
}

/* Pool Node Info Section */
.nodes-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
    text-align: center;
}

/* Animated gradient for node cards */
.node-card {
    color: var(--secondary-color);
    background-color: var(--alt-primary-color);
    margin: 0.5rem;
    border-radius: 1rem;
    position: relative;
}

.node-card * {
    padding: 0.5rem 0;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.node-card::after, .node-card::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: conic-gradient(from var(--angle), red, orange, red);
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -10;
    padding: 3px;
    border-radius: 1rem;
    animation: 3s spin linear infinite;
}

.node-card::before {
    filter: blur(1.5rem);
    opacity: 0.5;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }
    to {
        --angle: 360deg;
    }
}

/* Staking and Governance Section */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--alt-primary-color);
    padding: 0.5rem;
    margin: 0.5rem;
    border: solid 1px var(--secondary-color);
    border-radius: 1rem;
}

.content-container svg {
    fill: var(--accent-color);
}

.content-container h2 {
    padding-bottom: 0.5rem;
}

.cta-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 275px;
}

/* Live Stats Section */
.stats-container {
    background-color: var(--alt-primary-color);
    text-align: center;
    font-family: 'Epilogue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.5;
    border: solid 1px var(--secondary-color);
    border-radius: 1rem;
    padding: 0.5rem;
    margin: 0.5rem;;
}

.stats-container svg {
    fill: var(--accent-color)
}

.stat-label {
    color: var(--accent-color)
}

.stat-credit {
    font-size: 0.65rem;
}

/* New Code */
/* Epoch Progress Bar */
.epoch-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.85rem;
}

.progress-bg {
    background: var(--primary-color);
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, red, orange);
    width: 0%;
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status Footer & Status Pulse */
.status-footer {
    margin-top: 15px;
    font-size: 0.75rem;
    font-family: 'Epilogue', Arial, sans-serif;
    display: flex;
    align-items: center;
}

.status-indicator {
    height: 8px;
    width: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* End New Code*/

/* Media queries */
@media(max-width: 650px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}