/* Reset és alapstílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #1a1a1a;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Link hover animáció */
a {
    transition: all 0.2s ease;
}

a:hover:not(.btn-primary) {
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

/* Challenge checkbox */
.challenge-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #4a4a4a;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    flex-shrink: 0;
}

.challenge-checkbox.completed {
    background: #10b981;
    border-color: #10b981;
    animation: pop 0.3s ease;
}

.challenge-checkbox.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Timer circle */
.timer-circle {
    transition: stroke-dashoffset 1s linear;
}

/* Breathing animation */
.breathing-circle {
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Moving circles animation */
.moving-circle {
    animation: float 6s ease-in-out infinite;
}

.moving-circle:nth-child(2) {
    animation-delay: -2s;
}

.moving-circle:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(120deg); }
    66% { transform: translateY(5px) rotate(240deg); }
}

/* Confetti animation */
.confetti {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    animation: confetti-fall 4s linear forwards;
    z-index: 1000;
    pointer-events: none;
    border-radius: 4px;
    top: -50px;
}

.confetti:nth-child(2n) {
    background: #ef4444;
}

.confetti:nth-child(3n) {
    background: #10b981;
}

.confetti:nth-child(4n) {
    background: #8b5cf6;
}

.confetti:nth-child(5n) {
    background: #f59e0b;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(80vh) rotate(720deg);
        opacity: 0;
    }
}

/* Success message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 2rem 3rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    z-index: 1001;
    animation: success-popup 4s ease-in-out forwards;
}

@keyframes success-popup {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* Article styles */
.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #10b981;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: #333;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background: #10b981;
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobil menü */
#mobile-menu {
    transition: all 0.3s ease;
    transform-origin: top;
}

#mobile-menu:not(.hidden) {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu-button {
    transition: all 0.2s ease;
}

#mobile-menu-button:hover {
    transform: scale(1.1);
}

#mobile-menu a {
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

#mobile-menu a:hover {
    border-bottom-color: #4a4a4a;
    padding-left: 0.5rem;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .fade-in {
        animation-duration: 0.5s;
    }
} 
.prose *:first-child {
    margin-top: 0;
}
.prose *:last-child {
    margin-bottom: 0;
}
[x-cloak] {
    display: none !important;
}