/* Mobile Fixes for Font Pages */

/* Fix for fancy text container on small screens */
@media screen and (max-width: 768px) {
    .fancy-text-container {
        grid-template-columns: 1fr !important;
        margin-bottom: 100px !important;
        padding: 10px !important;
    }
    
    .fancy-text-item {
        min-height: 70px !important;
        padding: 12px 15px !important;
    }
    
    .fancy-text {
        line-height: 1.4 !important;
    }
    
    /* Fix for input box */
    .text-input-container {
        padding: 10px !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background-color: #fff !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    .input-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #textInput {
        padding: 12px 50px 12px 15px !important;
        font-size: 1rem !important;
        width: 100% !important;
        height: 50px !important;
    }
    
    .generate-btn {
        width: 40px !important;
        height: 40px !important;
        right: 5px !important;
    }
    
    /* Fix for footer links */
    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .footer-links a {
        margin: 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* Fix for font controls */
    .font-controls {
        padding: 8px 10px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 999 !important;
        background-color: white !important;
    }
    
    .font-size-slider {
        max-width: 60% !important;
    }
    
    .font-size-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Fix for copy button */
    .copy-btn {
        padding: 6px 12px !important;
    }
    
    .copy-btn-text {
        display: inline-block !important;
    }
    
    /* Fix for SEO content section */
    .seo-content {
        padding: 15px !important;
    }
    
    .seo-content h1 {
        font-size: 1.6rem !important;
    }
    
    .seo-content h2 {
        font-size: 1.4rem !important;
    }
    
    /* Fix for info cards */
    .info-cards {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix for how-to-use section */
    .steps-container {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix for FAQ section */
    .faq-question h3 {
        font-size: 1rem !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .fancy-text-item {
        min-height: 60px !important;
    }
    
    .fancy-text {
        font-size: 1rem !important;
    }
    
    .copy-btn {
        padding: 5px 10px !important;
    }
    
    .copy-btn i {
        margin-right: 2px !important;
    }
    
    .copy-btn-text {
        font-size: 0.75rem !important;
    }
    
    .seo-content h1 {
        font-size: 1.5rem !important;
    }
    
    .font-controls {
        padding: 5px 8px !important;
    }
}

/* Fix for body padding to prevent content being hidden under fixed input */
body {
    padding-bottom: 80px !important;
    height: 100% !important;
    min-height: 100vh !important; /* Fallback for browsers that don't support custom properties */
    min-height: calc(var(--vh, 1vh) * 100) !important;
    overflow-x: hidden !important;
}

/* Fix for emoji button on small screens */
@media screen and (max-width: 480px) {
    .emoji-button {
        padding: 3px 10px !important;
        font-size: 0.8rem !important;
    }
    
    .animated-emoji {
        width: 25px !important;
        height: 25px !important;
    }
    
    /* Mobile-specific toast styles */
    .copy-toast {
        bottom: 70px !important;
        padding: 8px 15px !important;
        font-size: 14px !important;
        max-width: 80% !important;
    }
}

/* Toast notification for copy success */
.copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
}

/* Fix for font display */
.fancy-text-item {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
    cursor: pointer;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fancy-text {
    font-size: 1.25rem;
    line-height: 1.5;
    user-select: all;
}

/* See More Fonts button */
.see-more-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 0 15px;
}

.see-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    max-width: 300px;
    background: linear-gradient(90deg, rgba(98, 36, 255, 1) 0%, rgba(255, 0, 98, 1) 100%);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(98, 36, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.see-more-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transition: left 0.7s;
}

.see-more-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 0, 98, 0.5);
    background: linear-gradient(90deg, rgba(255, 0, 98, 1) 0%, rgba(98, 36, 255, 1) 100%);
}

.see-more-btn:hover:before {
    left: 100%;
}

.see-more-btn i {
    margin-right: 12px;
    font-size: 1.4rem;
}

/* Mobile styles for See More button */
@media screen and (max-width: 480px) {
    .see-more-btn {
        width: 80%;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
}

/* Copy feedback animation */
.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    animation: fadeInOut 2s ease-in-out;
    font-size: 18px;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Improve clickable area for fancy-text */
.fancy-text {
    transition: background-color 0.2s ease;
}

.fancy-text:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Additional fonts handling */
.hidden {
    display: none !important;
}

/* Load more button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    grid-column: 1 / -1;
}

.load-more-btn {
    background: linear-gradient(90deg, rgba(98, 36, 255, 0.8) 0%, rgba(255, 0, 98, 0.8) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(98, 36, 255, 0.3);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 98, 0.4);
    background: linear-gradient(90deg, rgba(255, 0, 98, 0.9) 0%, rgba(98, 36, 255, 0.9) 100%);
} 