/* ===== TERM OF THE DAY CSS ===== */

/* Main Container */
.term-of-day-main {
    background-color: #000000;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 30% 30%, rgba(156, 238, 105, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(16, 17, 20, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(156, 238, 105, 0.05) 0%, transparent 70%),
        #000000;
}

/* Confetti System */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(720deg);
        opacity: 0;
    }
}

@keyframes confettiBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), calc(var(--vy) + 200px)) scale(0);
        opacity: 0;
    }
}

.confetti-piece,
.confetti-burst {
    pointer-events: none;
    will-change: transform, opacity;
}

/* Floating Crypto Background */
.crypto-float-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(156, 238, 105, 0.1);
    animation: cryptoFloat 20s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

.float-1 { top: 10%; left: 10%; animation-delay: 0s; }
.float-2 { top: 20%; right: 15%; animation-delay: 3s; }
.float-3 { bottom: 30%; left: 20%; animation-delay: 6s; }
.float-4 { bottom: 20%; right: 25%; animation-delay: 9s; }
.float-5 { top: 60%; left: 5%; animation-delay: 12s; }
.float-6 { top: 40%; right: 10%; animation-delay: 15s; }

@keyframes cryptoFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-30px) translateX(20px) rotate(90deg);
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-15px) translateX(-25px) rotate(180deg);
        opacity: 0.15;
    }
    75% { 
        transform: translateY(-35px) translateX(15px) rotate(270deg);
        opacity: 0.25;
    }
}

/* Content Container */
.term-of-day-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Page Header */
.term-header {
    margin-bottom: 50px;
	margin-top: 25px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.term-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.daily-badge {
    background: linear-gradient(135deg, rgba(156, 238, 105, 0.2), rgba(125, 217, 69, 0.3));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(156, 238, 105, 0.3);
    border-radius: 25px;
    padding: 25px 40px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.daily-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.badge-date {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-title {
    font-family: 'Quinn', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: #9cee69;
    line-height: 1.2;
    position: relative;
    z-index: 1;
	letter-spacing: 1px;
}

/* Term Card */
.term-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(156, 238, 105, 0.1);
}

.term-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.term-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9cee69, #7dd945, #9cee69);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.term-card-inner {
    padding: 40px;
    position: relative;
    z-index: 2;
}

/* Category Badge */
.category-badge {
    margin-bottom: 20px;
}

.category-link {
    background: rgba(156, 238, 105, 0.15);
    border: 1px solid rgba(156, 238, 105, 0.3);
    color: #9cee69;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-link:hover {
    background: rgba(156, 238, 105, 0.25);
    border-color: #9cee69;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(156, 238, 105, 0.3);
}

/* Term Title */
.term-title {
    font-family: 'Quinn', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #9cee69;
    margin: 0 0 20px 0;
    line-height: 1.2;
    position: relative;
}

/* Term Stats */
.term-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.stat-item svg {
    opacity: 0.8;
    color: #9cee69;
}

/* Term Definition */
.term-definition {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Action Buttons */
.term-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.read-full-btn,
.share-term-btn {
    background: linear-gradient(135deg, #9cee69, #7dd945);
    color: #000000;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(156, 238, 105, 0.3);
}

.read-full-btn:hover,
.share-term-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(156, 238, 105, 0.4);
    background: linear-gradient(135deg, #7dd945, #6bc729);
}

.share-term-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.share-term-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-color: #9cee69;
    color: #9cee69;
}

.share-term-btn.copied {
    background: linear-gradient(135deg, #9cee69, #7dd945);
    border-color: #9cee69;
    color: #000000;
}

.btn-icon {
    font-size: 18px;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.read-full-btn:hover .btn-arrow,
.share-term-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Daily Actions Grid */
.daily-actions {
    margin-bottom: 60px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 238, 105, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before,
.action-card.hover-effect::before {
    left: 100%;
}

.action-card:hover,
.action-card.hover-effect {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(156, 238, 105, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(156, 238, 105, 0.2);
}

.action-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.action-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.action-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Tomorrow's Teaser */
.tomorrow-teaser {
    background: linear-gradient(135deg, rgba(156, 238, 105, 0.1), rgba(16, 17, 20, 0.2));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(156, 238, 105, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.tomorrow-teaser.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.tomorrow-teaser h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.tomorrow-teaser p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0 0 30px 0;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 70px;
    text-align: center;
}

.countdown-number {
    color: #9cee69;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.countdown-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Terms Fallback */
.term-card-inner.no-terms {
    text-align: center;
    padding: 60px 40px;
}

.no-terms .term-title {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.no-terms .term-definition {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.no-terms .term-definition a {
    color: #9cee69;
    text-decoration: none;
    font-weight: 600;
}

.no-terms .term-definition a:hover {
    text-decoration: underline;
}

/* Animation Utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .term-of-day-main {
        padding-top: 20px;
        padding-bottom: 40px;
    }
    
    .daily-badge {
        padding: 20px 25px;
        margin: 0 10px;
    }
    
    .badge-title {
        font-size: 2rem;
    }
    
    .term-card-inner {
        padding: 30px 25px;
    }
    
    .term-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .term-stats {
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .term-definition {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .term-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .read-full-btn,
    .share-term-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .action-card {
        padding: 20px 15px;
    }
    
    .tomorrow-teaser {
        padding: 30px 20px;
    }
    
    .tomorrow-teaser h3 {
        font-size: 1.3rem;
    }
    
    .countdown-container {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 12px 15px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .float-icon {
        font-size: 2rem;
        opacity: 0.05;
    }
    
    /* Hide some floating icons on mobile */
    .float-5,
    .float-6 {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .daily-badge {
        padding: 15px 20px;
        margin: 0 5px;
    }
    
    .badge-title {
        font-size: 1.8rem;
    }
    
    .term-card-inner {
        padding: 25px 20px;
    }
    
    .term-title {
        font-size: 1.7rem;
    }
    
    .term-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .tomorrow-teaser {
        padding: 25px 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 10px 12px;
    }
    
    .countdown-number {
        font-size: 1.3rem;
    }
    
    .countdown-label {
        font-size: 11px;
    }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .confetti-container {
        display: none !important;
    }
    
    .crypto-float-background {
        display: none !important;
    }
    
    .daily-badge::before {
        display: none !important;
    }
    
    .term-card::before {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .term-card {
        border: 2px solid #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .category-link {
        border: 2px solid #9cee69;
        background: rgba(156, 238, 105, 0.3);
    }
    
    .action-card {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .countdown-item {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}