/* Pools Page Styles */

/* Hero Section */
.pools-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.pools-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 800px 600px at 50% 30%, rgba(0, 240, 255, 0.12), transparent 70%),
        radial-gradient(ellipse 600px 400px at 30% 70%, rgba(0, 106, 210, 0.1), transparent 70%),
        radial-gradient(ellipse 600px 400px at 70% 70%, rgba(0, 136, 255, 0.08), transparent 70%);
    animation: poolsHeroPulse 8s ease-in-out infinite alternate;
}

@keyframes poolsHeroPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.pools-hero .hero-content {
    text-align: center;
    z-index: 10;
    padding: 1.5rem 2rem;
}

.pools-hero .hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pools-hero .hero-subtitle {
    font-family: var(--font-tech);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-cyan);
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.pools-hero .hero-main {
    font-family: var(--font-tech);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-cyan) 0%, #006AD2 50%, #0088ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

.pools-hero .hero-description {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--color-silver);
    margin-top: 1rem;
    line-height: 1.6;
}

/* Pools Section */
.pools-section {
    padding: 2rem 0 4rem 0;
    position: relative;
}

/* Pool Tabs (Mobile Only) */
.pool-tabs {
    display: none; /* Hidden by default (desktop) */
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.pool-tab {
    flex: 1;
    max-width: 200px;
    padding: 1rem 1.5rem;
    background: var(--color-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-silver);
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pool-tab:hover {
    border-color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-2px);
}

.pool-tab.active {
    border-color: var(--color-cyan);
    background: rgba(0, 240, 255, 0.1);
    color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.tab-icon {
    font-size: 1.2rem;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.pool-tab.active .tab-icon {
    filter: grayscale(0);
}

.pools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 600px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Pool Cards - Default: Show all (Desktop) */
.pool-card {
    display: flex; /* Show by default on desktop */
    position: relative;
    background: var(--color-card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.pool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.pool-card:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pool-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-glow);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 240, 255, 0.15);
}

.pool-card:hover::before {
    opacity: 1;
}

.pool-card[data-pool="btc"]:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(247, 147, 26, 0.3);
}

.pool-card[data-pool="digi"]:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 106, 210, 0.3);
}

/* Pool Header */
.pool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pool-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.pool-icon.btc {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.2), rgba(247, 147, 26, 0.05));
    border: 1px solid rgba(247, 147, 26, 0.3);
}

.pool-icon.digi {
    background: linear-gradient(135deg, rgba(0, 106, 210, 0.2), rgba(0, 106, 210, 0.05));
    border: 1px solid rgba(0, 106, 210, 0.3);
}

.pool-card:hover .pool-icon {
    transform: scale(1.1) rotate(5deg);
}

.pool-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.pool-title h2 {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.pool-url {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-cyan);
    font-weight: 400;
}

/* Pool Stats Grid */
.pool-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--color-border-glow);
    transform: scale(1.02);
}

.stat-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    filter: grayscale(0);
    transform: scale(1.15);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: var(--font-tech);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 0.02em;
    line-height: 1.2;
    word-break: break-word;
}

/* Loading Animation */
.loading-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-cyan);
    margin: 0 2px;
    animation: loadingPulse 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingPulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pool CTA */
.pool-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.pool-card:hover .pool-cta {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--color-cyan);
}

.cta-text {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-arrow {
    font-size: 1.5rem;
    color: var(--color-cyan);
    transition: transform 0.3s ease;
}

.pool-card:hover .cta-arrow {
    transform: translateX(8px);
}

/* Pool Glow Effect */
.pool-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btc-glow {
    background: radial-gradient(circle, rgba(247, 147, 26, 0.3), transparent 70%);
    bottom: -150px;
    right: -150px;
}

.digi-glow {
    background: radial-gradient(circle, rgba(0, 106, 210, 0.3), transparent 70%);
    bottom: -150px;
    right: -150px;
}

.pool-card:hover .pool-glow {
    opacity: 1;
}

/* Animated Background Particles */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Active Nav Link */
.nav-menu a.active {
    color: var(--color-cyan);
    border-bottom: 2px solid var(--color-cyan);
}

/* Responsive Design */
@media (min-width: 769px) {
    /* Hide tabs on desktop */
    .pool-tabs {
        display: none !important;
    }
    
    /* Show both pools on desktop */
    .pool-card {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .pools-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .pool-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    /* Show tabs on mobile */
    .pool-tabs {
        display: flex !important;
    }
    
    /* Hide all pools by default on mobile */
    .pool-card {
        display: none !important;
    }
    
    /* Only show active pool on mobile */
    .pool-card.active {
        display: flex !important;
    }
    
    .pools-hero {
        min-height: 50vh;
    }
    
    .pools-section {
        padding: 2rem 0 4rem 0;
    }
    
    .pool-card {
        padding: 1.5rem;
    }
    
    .pool-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pool-icon {
        width: 60px;
        height: 60px;
    }
    
    .pool-title h2 {
        font-size: 1.5rem;
    }
    
    .pool-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .pool-card {
        padding: 1.25rem;
        gap: 1.5rem;
    }
    
    .pool-title h2 {
        font-size: 1.3rem;
    }
    
    .pool-url {
        font-size: 0.95rem;
    }
    
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .pool-cta {
        display: none;
    }
    
    .pool-card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}
