/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&family=Michroma&display=swap');

/* Set root color variables */
:root {
    --primary-color: #000000;
    --secondary-color: #FAFAF9;
    --alt-primary-color: #191A1A;
    --alt-secondary-color: #FACF9F;
    --accent-color: #F56D24;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

main {
    display: inline-block;
    padding: 1rem;
}

h1, h2 {
    font-family: 'Michroma', Arial, sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3, h4, h5, h6, p {
    font-family: 'Michroma', Arial, sans-serif;
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
}

h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.1rem;
}

p {
    font-family: 'Epilogue', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.2;
}

main {
    width: 100%;
}

.bech32-id {
    word-break: break-all;
}

.cta-btn {
    display: inline-block;
    color: var(--secondary-color);
    background-color: var(--alt-primary-color);
    outline: 2px solid var(--accent-color);
    font-family: 'Michroma', Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 1000px;
    padding: 0.5rem 1rem;
    margin: 1rem;
}

.cta-btn:hover {
    color: var(--primary-color);
    background: linear-gradient(180deg, #fd1f0f, #f88a0d);
    outline: 2px solid var(--secondary-color);
}

.social-icon {
    fill: var(--secondary-color);
    height: 2.5rem;
}

.social-icon:hover {
    fill: var(--accent-color);
}

/* Page-specific Styles */
/* Header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
}

.social-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.social-container a {
    margin: 0.25rem;
}

/* 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 node card */
.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*/

/* Footer Section */
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 0.5rem 1rem;
}

#cbca-badge {
    width: 100px;
}

#intersect-badge {
    width: 85px;
}

#cexplorer-badge {
    width: 95px;
}

.footer-text {
    padding: 0.5rem;
    align-items: center;
    justify-items: center;
}

.footer-text p {
    font-size: 0.75rem;
}

/* Media Queries */
@media(max-width: 430px) {
    html {
        font-size: 12px;
    }
}

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