/* Copyright (c) 2024-2026. Jericho Crosby (Chalwk) */

:root {
    --bg-1: #0f172a;
    --bg-2: #0b2545;
    --glass: rgba(255, 255, 255, 0.06);
    --accent: #7dd3fc;
    --accent-2: #60a5fa;
    --muted: #94a3b8;
}

.giggle-panel {
    background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.giggle-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(96, 165, 250, 0.08), transparent);
    z-index: -1;
}

.giggle-panel-head {
    text-align: center;
    margin-bottom: 2rem;
}

.giggle-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giggle-logo-icon {
    color: #042033;
    font-size: 1.8rem;
}

.giggle-title {
    color: white;
    margin-bottom: 0.5rem;
}

.giggle-description {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.giggle-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

.joke-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.joke-type-badge {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #05203a;
}

.joke-source {
    color: var(--muted);
    font-size: 0.8rem;
}

.joke-text {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 1.5rem 0;
    color: #e6eef8;
}

.joke-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    transition: all 0.2s ease !important;
}

.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.5) !important;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2)) !important;
    color: #042033 !important;
    border: none !important;
    font-weight: 600;
}

.btn-new-joke {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #042033;
    border: 0;
}

.btn-fallback {
    border-style: dashed;
    opacity: 0.9;
}

.joke-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.extras-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kbd {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-weight: 600;
}

.joke-status {
    color: var(--accent);
}

@media (max-width: 768px) {
    .joke-text {
        font-size: 1.2rem !important;
    }

    .joke-controls {
        flex-direction: column;
    }

    .joke-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .joke-extras {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .giggle-panel {
        padding: 1.5rem !important;
    }

    .giggle-card {
        padding: 1.5rem !important;
    }

    .giggle-title {
        font-size: 2rem !important;
    }
}

.mobile-actions {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.mobile-action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #042033;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(125, 211, 252, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mobile-action-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-action-btn span {
    font-size: 0.9rem;
    font-family: 'Source Code Pro', monospace;
}

@media (max-width: 768px) {
    .mobile-actions {
        display: flex;
    }

    @media (max-height: 700px) {
        .mobile-actions {
            bottom: 70px;
        }
    }
}

.mobile-action-btn:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(125, 211, 252, 0.2) !important;
}

@media (max-width: 768px) {
    .extras-tip {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .extras-tip .kbd {
        display: none;
    }

    .extras-tip::before {
        content: "Tap buttons on right for quick actions";
        color: var(--accent);
    }
}