/* ===================================
   SatoshiConclaveFeed - Main Styles
   =================================== */

/* CSS Variables */
:root {
    --color-primary: #f97316;
    --color-primary-light: #fb923c;
    --color-secondary: #3b82f6;
    --color-success: #22c55e;
    --color-warning: #eab308;
    --color-error: #ef4444;
    --color-bg-dark: #020617;
    --color-bg-main: #0f172a;
    --color-bg-card: rgba(15, 23, 42, 0.6);
    --color-border: rgba(249, 115, 22, 0.1);
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;
}

/* Glass Panel Effect */
.glass-panel {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
}

.glass-panel-solid {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Custom Scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-custom::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: rgba(51, 65, 85, 0.3);
    border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.4);
    border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.6);
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg,
            rgba(51, 65, 85, 0.3) 25%,
            rgba(51, 65, 85, 0.5) 50%,
            rgba(51, 65, 85, 0.3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    border-left: 4px solid;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slide-in 0.3s ease-out forwards;
    transform: translateX(100%);
}

.toast.success {
    border-color: var(--color-success);
}

.toast.error {
    border-color: var(--color-error);
}

.toast.info {
    border-color: var(--color-secondary);
}

.toast.warning {
    border-color: var(--color-warning);
}

@keyframes slide-in {
    to {
        transform: translateX(0);
    }
}

@keyframes slide-out {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), #ea580c);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(51, 65, 85, 0.5);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 116, 139, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(100, 116, 139, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-ghost:hover {
    background: rgba(51, 65, 85, 0.5);
    color: white;
}

/* Input Styles */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    color: white;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: var(--color-text-muted);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Table Styles */
.data-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
}

.data-table thead {
    background: rgba(15, 23, 42, 0.8);
}

.data-table th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 1rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(51, 65, 85, 0.2);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(135deg, #22c55e, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effects */
.glow-orange {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.glow-blue {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.glow-green {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   Educational / Practice Banner (Global)
   ======================================== */
.edu-banner {
    margin-bottom: 1.5rem;
}

.edu-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 50%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.edu-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.8), rgba(249, 115, 22, 0.6), rgba(245, 158, 11, 0.8));
    background-size: 200% 100%;
    animation: bannerGlow 3s ease infinite;
}

@keyframes bannerGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.edu-banner-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    color: #f59e0b;
}

.edu-banner-content {
    flex: 1;
}

.edu-banner-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.edu-banner-text {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Compact variant for DApp pages */
.edu-banner-compact .edu-banner-inner {
    padding: 0.6rem 1rem;
    align-items: center;
    border-radius: 0.75rem;
}

.edu-banner-compact .edu-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
}

.edu-banner-compact .edu-banner-title {
    font-size: 0.8rem;
    margin-bottom: 0;
}

.edu-banner-compact .edu-banner-text {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .edu-banner-inner {
        padding: 0.75rem 1rem;
    }

    .edu-banner-icon {
        width: 36px;
        height: 36px;
    }

    .edu-banner-title {
        font-size: 0.85rem;
    }

    .edu-banner-text {
        font-size: 0.75rem;
    }

    .edu-banner-compact .edu-banner-inner {
        padding: 0.5rem 0.75rem;
    }
}