/* ============================================
   pkok.fun - Custom Styles
   Production-ready CSS with organized sections
   ============================================ */

/* === Base Styles === */
body {
    font-family: 'Comic Neue', cursive;
    cursor:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewport="0 0 100 100" style="fill:black;font-size:24px;"><text y="50%">🐔</text></svg>')
            16 16,
        auto;
}

h1,
h2,
h3,
.font-display {
    font-family: 'Fredoka One', cursive;
}

/* === Custom Animations === */
.shake-hard {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0) rotate(-1deg);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0) rotate(2deg);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0) rotate(-4deg);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0) rotate(4deg);
    }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* === Falling Chicken Effect === */
.falling-chicken {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    animation: fall linear forwards;
    z-index: 50;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

/* === Interactive Elements === */
.glitch-hover:hover {
    animation: shake 0.2s infinite;
    background-color: #ff00ff !important;
    color: yellow !important;
}

/* === Marquee Animation === */
.animate-marquee {
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #fde047;
}

::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 6px;
    border: 3px solid #fde047;
}

/* === Accessibility === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === Focus Styles === */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #ec4899;
    outline-offset: 2px;
}

/* === Print Styles === */
@media print {
    .no-print {
        display: none !important;
    }
}

/* === Responsive Images === */
img {
    max-width: 100%;
    height: auto;
}

/* === Performance Optimization === */
.will-change-transform {
    will-change: transform;
}

/* === Reduced Motion Support === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === SweetAlert2 Custom Styling === */
.sweetalert-popup {
    border: 4px solid #000 !important;
    border-radius: 1.5rem !important;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #fef08a 0%, #fce7f3 100%) !important;
    animation: popupBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sweetalert-title {
    font-family: 'Fredoka One', cursive !important;
    font-size: 1.875rem !important;
    font-weight: 900 !important;
    color: #ec4899 !important;
    margin-bottom: 1rem !important;
}

.sweetalert-button {
    background-color: #000 !important;
    color: #fef08a !important;
    font-family: 'Fredoka One', cursive !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    border: 3px solid #000 !important;
    border-radius: 0.75rem !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.sweetalert-button:hover {
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.2) !important;
}

.sweetalert-button:active {
    transform: translate(0px, 0px) !important;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2) !important;
}

@keyframes popupBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    70% {
        transform: scale(1.05) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* SweetAlert2 Icon Colors */
.swal2-icon-info {
    border-color: #0ea5e9 !important;
    color: #0ea5e9 !important;
}

/* SweetAlert2 Content Styling */
.swal2-html-container {
    font-family: 'Comic Neue', cursive !important;
    color: #111 !important;
}

/* === Social Media Links Styling === */
.social-media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 3px solid;
    border-radius: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
}

/* Instagram */
.social-link-instagram {
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 50%, #d92e7f 100%);
    border-color: #d92e7f;
    color: #fff;
}

.social-link-instagram:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 8px 25px rgba(217, 46, 127, 0.6),
        0 0 20px rgba(217, 46, 127, 0.3);
}

/* Threads */
.social-link-threads {
    background: linear-gradient(135deg, #000 0%, #333 100%);
    border-color: #fff;
    color: #fff;
}

.social-link-threads:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1);
}

/* TikTok */
.social-link-tiktok {
    background: linear-gradient(135deg, #00f7ef 0%, #25f4ee 50%, #fd1d1d 100%);
    border-color: #fd1d1d;
    color: #000;
    font-weight: 900;
}

.social-link-tiktok:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 8px 25px rgba(253, 29, 29, 0.6),
        0 0 20px rgba(0, 247, 239, 0.3);
}

/* YouTube */
.social-link-youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: #fff;
    color: #fff;
}

.social-link-youtube:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow:
        0 8px 25px rgba(255, 0, 0, 0.6),
        0 0 20px rgba(255, 0, 0, 0.3);
}

/* Social Link Labels */
.social-link-label {
    font-family: 'Fredoka One', cursive;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-link {
        width: 85px;
        height: 85px;
        font-size: 1.75rem;
        border: 2px solid;
    }

    .social-link:hover {
        transform: scale(1.1) rotate(0deg) !important;
    }
}

@media (max-width: 480px) {
    .social-link {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
        border: 2px solid;
        margin: 0.25rem;
    }

    .social-media-links {
        gap: 0.5rem;
    }
}
