/* Laughing Quotes Page - Fun & Playful Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="3" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="2" fill="%23ffffff" opacity="0.08"/><circle cx="40" cy="70" r="4" fill="%23ffffff" opacity="0.06"/><circle cx="70" cy="80" r="2.5" fill="%23ffffff" opacity="0.09"/></svg>') repeat;
    background-size: 100px 100px;
    z-index: -1;
    animation: bubble 15s ease-in-out infinite;
}

@keyframes bubble {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-20px) scale(1.05); }
    50% { transform: translateY(-10px) scale(0.95); }
    75% { transform: translateY(-30px) scale(1.02); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.mood-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

#moodIcon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

#moodText {
    font-weight: 600;
    color: #ff6b6b;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.laugh-meter {
    display: inline-block;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.laugh-scale {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.laugh-scale span {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

.laugh-scale span:hover,
.laugh-scale span.active {
    transform: scale(1.3);
    background: rgba(255, 107, 107, 0.2);
}

.laugh-meter p {
    color: #7f8c8d;
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

/* Stats Section */
.stats {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    counter-reset: number;
    animation: countUp 2s ease-out;
}

.stat-label {
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-btn {
    background: white;
    border: 3px solid transparent;
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-btn:hover,
.category-btn.active {
    border-color: #ff6b6b;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.category-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Quote Display */
.quote-display {
    padding: 4rem 0;
}

.quote-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 800px;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-tag {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.quote-number {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.quote-content {
    text-align: center;
    margin-bottom: 2rem;
}

.quote-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

#quoteText {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #2c3e50;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0 2rem;
    position: relative;
}

#quoteText::before,
#quoteText::after {
    content: '"';
    font-size: 4rem;
    color: rgba(255, 107, 107, 0.3);
    position: absolute;
    font-family: Georgia, serif;
}

#quoteText::before {
    top: -1rem;
    left: 0;
}

#quoteText::after {
    bottom: -2rem;
    right: 0;
}

.quote-author {
    color: #7f8c8d;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Quote Reactions */
.quote-reactions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.reaction-btn {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    padding: 0.75rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reaction-btn:hover {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
    animation: pulse 0.5s ease-out;
}

/* Quote Actions */
.quote-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
}

.action-btn:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-2px);
}

.action-btn.primary {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.action-btn.primary:hover {
    background: #e55656;
    transform: translateY(-2px) scale(1.05);
}

.action-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

/* Laugh Animation */
.laugh-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

.laugh-animation.active {
    animation: laughBurst 1.5s ease-out;
}

.laugh-emoji {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 1.5s ease-out;
}

.laugh-emoji:nth-child(1) { animation-delay: 0s; left: -30px; }
.laugh-emoji:nth-child(2) { animation-delay: 0.2s; left: 0px; }
.laugh-emoji:nth-child(3) { animation-delay: 0.4s; left: 30px; }
.laugh-emoji:nth-child(4) { animation-delay: 0.6s; left: 60px; }

/* Daily Challenge */
.daily-challenge {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.challenge-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.challenge-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
}

.challenge-timer {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.challenge-content p {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.challenge-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    background: #e9ecef;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-text {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 600;
}

.challenge-reward {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 107, 107, 0.1);
    padding: 1rem;
    border-radius: 15px;
    border-left: 4px solid #ff6b6b;
}

.reward-icon {
    font-size: 1.2rem;
}

/* Favorites Section */
.favorites {
    padding: 4rem 0;
}

.favorites h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.favorite-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff6b6b;
    color: white;
}

.modal-body {
    padding: 2rem;
}

.share-preview {
    background: rgba(255, 107, 107, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 4px solid #ff6b6b;
}

.preview-quote {
    font-style: italic;
    color: #2c3e50;
    font-size: 1.1rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-btn {
    padding: 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.email { background: #dd4b39; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.share-text {
    position: relative;
}

.share-text textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    margin-bottom: 1rem;
}

.copy-share-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-share-btn:hover {
    background: #e55656;
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.2rem;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 10s infinite linear;
}

.floating-emoji:nth-child(1) { left: 10%; animation-delay: 0s; }
.floating-emoji:nth-child(2) { left: 20%; animation-delay: 2s; }
.floating-emoji:nth-child(3) { left: 30%; animation-delay: 4s; }
.floating-emoji:nth-child(4) { left: 70%; animation-delay: 6s; }
.floating-emoji:nth-child(5) { left: 80%; animation-delay: 8s; }
.floating-emoji:nth-child(6) { left: 90%; animation-delay: 10s; }

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

.footer-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.stat-desc {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes laughBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .laugh-scale {
        gap: 0.5rem;
    }

    .laugh-scale span {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .quote-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    #quoteText {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .quote-reactions,
    .quote-actions {
        gap: 0.5rem;
    }

    .reaction-btn,
    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .challenge-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-stats {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .laugh-meter {
        padding: 1rem 1.5rem;
    }

    .quote-card {
        padding: 1.5rem 1rem;
    }

    #quoteText {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .quote-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quote-reactions,
    .quote-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
        max-width: 250px;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .share-options {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-stats {
        justify-content: center;
    }
}
