/*
Theme Name: Ethereum Mining
Theme URI: https://ethereummining.ru
Description: Техно-футуристическая тема для Ethereum на Tailwind CSS
Version: 2.0
Author: EthereumMining Team
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;900&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        font-family: 'Space Grotesk', sans-serif;
    }
}

@layer components {
    /* Neon Glow Effects */
    .neon-glow {
        box-shadow: 0 0 20px rgba(98, 126, 234, 0.5), 0 0 40px rgba(98, 126, 234, 0.3);
    }
    
    .neon-glow-hover:hover {
        box-shadow: 0 0 30px rgba(98, 126, 234, 0.8), 0 0 60px rgba(98, 126, 234, 0.5);
    }
    
    .neon-text {
        text-shadow: 0 0 20px rgba(98, 126, 234, 0.8), 0 0 40px rgba(155, 81, 224, 0.6);
    }
    
    .neon-border {
        border: 2px solid rgba(98, 126, 234, 0.5);
        box-shadow: 0 0 15px rgba(98, 126, 234, 0.3), inset 0 0 15px rgba(98, 126, 234, 0.1);
    }
    
    .neon-border-hover:hover {
        border-color: rgba(98, 126, 234, 1);
        box-shadow: 0 0 25px rgba(98, 126, 234, 0.6), inset 0 0 25px rgba(98, 126, 234, 0.2);
    }
    
    /* Pulse Animation */
    .pulse-glow {
        animation: pulse-glow 2s ease-in-out infinite;
    }
    
    @keyframes pulse-glow {
        0%, 100% { 
            filter: drop-shadow(0 0 10px rgba(98, 126, 234, 0.9));
        }
        50% { 
            filter: drop-shadow(0 0 20px rgba(98, 126, 234, 1)) drop-shadow(0 0 30px rgba(155, 81, 224, 0.8));
        }
    }
    
    /* Diagonal Lines Background */
    .diagonal-lines {
        background-image: 
            linear-gradient(45deg, rgba(98, 126, 234, 0.05) 25%, transparent 25%),
            linear-gradient(-45deg, rgba(98, 126, 234, 0.05) 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, rgba(98, 126, 234, 0.05) 75%),
            linear-gradient(-45deg, transparent 75%, rgba(98, 126, 234, 0.05) 75%);
        background-size: 20px 20px;
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }
    
    /* Masonry Card */
    .masonry-card {
        @apply bg-white rounded-[20px] overflow-hidden shadow-lg transition-all duration-300;
        border: 2px solid transparent;
        position: relative;
    }
    
    .masonry-card::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(135deg, #627eea, #9b51e0);
        border-radius: 20px;
        opacity: 0;
        transition: opacity 0.4s;
        z-index: -1;
    }
    
    .masonry-card:hover::before {
        opacity: 1;
    }
    
    .masonry-card:hover {
        @apply -translate-y-2 scale-105;
        box-shadow: 0 15px 40px rgba(98, 126, 234, 0.3), 0 0 30px rgba(98, 126, 234, 0.4);
    }
}

@layer utilities {
    .text-eth-purple {
        color: #627eea;
    }
    
    .text-eth-dark {
        color: #1c1c3c;
    }
    
    .bg-eth-purple {
        background-color: #627eea;
    }
    
    .bg-eth-dark {
        background-color: #1c1c3c;
    }
    
    .bg-eth-accent {
        background-color: #9b51e0;
    }
    
    .border-eth-purple {
        border-color: #627eea;
    }
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-grid .masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* =====================
   Post Cards — главная
   ===================== */

.masonry-card .card-body { padding: 1.5rem; }

.masonry-card h3 a {
    color: #1c1c3c;
    text-decoration: none;
    transition: color 0.2s;
}
.masonry-card h3 a:hover { color: #627eea; }

.masonry-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.masonry-card .card-cat {
    color: #627eea;
    font-weight: 700;
}

.masonry-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.875rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.875rem;
}

.masonry-card .card-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #627eea, #9b51e0);
    color: #fff !important;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s, gap 0.2s;
}
.masonry-card .card-read:hover { opacity: 0.85; gap: 0.6rem; }

/* =====================
   Prose — контент статьи
   ===================== */

.prose {
    color: #1a1a2e;
    font-size: 1.05rem;
    line-height: 1.85;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: #1c1c3c;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #627eea;
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1c1c3c;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.875rem;
    border-left: 4px solid #627eea;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #627eea;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1c1c3c;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p { margin-bottom: 1.25rem; }

.prose a {
    color: #627eea;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s;
}
.prose a:hover { color: #9b51e0; }

.prose strong { color: #1c1c3c; font-weight: 700; }
.prose em { font-style: italic; color: #444; }

/* Списки */
.prose ul { list-style: none; padding-left: 0; margin-bottom: 1.25rem; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; }
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 8px; height: 8px;
    background: linear-gradient(135deg, #627eea, #9b51e0);
    border-radius: 50%;
}
.prose ul ul { padding-left: 1rem; margin-top: 0.4rem; margin-bottom: 0.4rem; }
.prose ul ul li::before { width: 6px; height: 6px; background: transparent; border: 2px solid #627eea; top: 0.6em; }
.prose ul ul ul { padding-left: 1rem; }
.prose ul ul ul li::before { width: 5px; height: 5px; background: rgba(98,126,234,.4); border: none; }

.prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: decimal; }
.prose ol li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.prose ol li::marker { color: #627eea; font-weight: 700; }
.prose li > p { margin-bottom: 0.25rem; }

/* Таблица */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(98,126,234,.15);
}
.prose th {
    background: linear-gradient(135deg, #627eea, #9b51e0);
    color: #ffffff !important;
    font-weight: 700;
    padding: 0.875rem 1rem;
    text-align: left;
    border: none;
}
.prose td {
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid #ede9fe;
    color: #1a1a2e;
}
.prose tr:nth-child(even) td { background: #f5f3ff; }
.prose tr:hover td { background: #ede9fe; transition: background 0.15s; }

/* Цитата */
.prose blockquote {
    border-left: 4px solid #627eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f5f3ff;
    border-radius: 0 12px 12px 0;
    color: #444;
    font-style: italic;
}

/* Код */
.prose code {
    background: #ede9fe;
    color: #5b21b6;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}
.prose pre {
    background: #1c1c3c;
    color: #a5b4fc;
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9em;
}
.prose pre code { background: none; padding: 0; color: inherit; }

.prose img {
    border-radius: 12px;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(98,126,234,.2);
}

/* page.php */
.page-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1a1a2e;
}
.page-content h1 { font-size:2rem; font-weight:900; color:#1c1c3c; margin:2.5rem 0 1.25rem; padding-bottom:.75rem; border-bottom:3px solid #627eea; }
.page-content h2 { font-size:1.6rem; font-weight:800; color:#1c1c3c; margin:2.5rem 0 1rem; padding-left:.875rem; border-left:4px solid #627eea; }
.page-content h3 { font-size:1.25rem; font-weight:700; color:#627eea; margin:2rem 0 .75rem; }
.page-content h4 { font-size:1.05rem; font-weight:600; color:#1c1c3c; margin:1.5rem 0 .5rem; }
.page-content p { margin-bottom:1.25rem; }
.page-content a { color:#627eea; text-decoration:underline; font-weight:500; }
.page-content a:hover { color:#9b51e0; }
.page-content strong { color:#1c1c3c; font-weight:700; }
.page-content ul { list-style:none; padding-left:0; margin-bottom:1.25rem; }
.page-content ul li { position:relative; padding-left:1.6rem; margin-bottom:.6rem; }
.page-content ul li::before { content:''; position:absolute; left:0; top:.55em; width:8px; height:8px; background:linear-gradient(135deg,#627eea,#9b51e0); border-radius:50%; }
.page-content ol { padding-left:1.5rem; margin-bottom:1.25rem; list-style:decimal; }
.page-content ol li { margin-bottom:.6rem; }
.page-content ol li::marker { color:#627eea; font-weight:700; }
.page-content table { width:100%; border-collapse:collapse; margin:2rem 0; border-radius:12px; overflow:hidden; box-shadow:0 2px 12px rgba(98,126,234,.15); }
.page-content th { background:linear-gradient(135deg,#627eea,#9b51e0); color:#fff; font-weight:700; padding:.875rem 1rem; text-align:left; border:none; }
.page-content td { padding:.75rem 1rem; border:none; border-bottom:1px solid #ede9fe; }
.page-content tr:nth-child(even) td { background:#f5f3ff; }
.page-content blockquote { border-left:4px solid #627eea; padding:1rem 1.5rem; margin:2rem 0; background:#f5f3ff; border-radius:0 12px 12px 0; font-style:italic; color:#444; }
.page-content img { border-radius:12px; margin:2rem 0; max-width:100%; box-shadow:0 4px 20px rgba(98,126,234,.2); }
