/* Custom styles for FBBioCreator */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Website logo styling */
.website-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #000;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.75rem 1rem 0.75rem 0;
}

/* Home icon styling */
.home-icon {
    color: #833ab4;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-size: 1.2rem;
}

.home-icon span {
    font-size: 1.2rem;
    line-height: 1;
}

.home-icon:hover {
    color: #e1306c;
    background-color: rgba(131, 58, 180, 0.1);
    transform: translateY(-2px);
}

/* Add underline animation */
.home-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #e1306c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.home-icon:hover::before {
    width: 100%;
}

/* Mobile touch support */
@media (hover: none) {
    .home-icon:active .icon-wrapper {
        transform: translateY(-100%);
    }
    
    .home-icon:active .text-wrapper {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Add hover effect to the logo */
a.website-logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a.website-logo:hover {
    opacity: 0.8;
}

/* Custom animation for the style category boxes */
.bio-category {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bio-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Emoji icon styling */
.emoji-icon {
    font-size: 1.5rem;
    display: inline-block;
    margin-right: 2px;
    transform: translateY(1px);
}

/* Bio result styling */
.bio-result {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#generatedBioContainer {
    line-height: 1.7;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#generatedBio {
    word-wrap: break-word;
}

.bio-emoji {
    display: inline-block;
    margin: 0 2px;
    animation: subtle-bounce 2s infinite ease-in-out;
}

.bio-divider {
    margin: 8px 0;
    text-align: center;
    color: #a0aec0;
}

/* Subtle bounce animation for bio emojis */
@keyframes subtle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Instagram-inspired gradient for the hero section */
/* Now using Tailwind's gradient classes directly in HTML */

/* Pulse animation for the generate button - Instagram colors */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(131, 58, 180, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(131, 58, 180, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(131, 58, 180, 0);
    }
}

#generateBtn:hover {
    animation: pulse 1.5s infinite;
}

/* Button primary styling for links - Instagram inspired */
.btn-primary {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    animation: pulse 1.5s infinite;
}

/* Fade-in animation for the result */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#result:not(.hidden) {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom scrollbar - Instagram inspired */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #833ab4, #fd1d1d, #fcb045);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #a64eee, #fd5c5c, #fccc6b);
}

/* Section title styling - Instagram inspired */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #833ab4;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    border-radius: 3px;
}

/* Bio example styling - Instagram inspired */
.bio-example {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    position: relative;
}

.bio-example:hover {
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.15);
    border-color: #e1306c;
}

.bio-example.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Bio action buttons styling */
.bio-actions {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.bio-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
}

.bio-action-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    background-color: rgba(0, 0, 0, 0.05);
}

.bio-icon {
    font-style: normal;
    font-size: 1.1rem;
}

.copy-btn:hover .bio-icon {
    color: #833ab4;
}

.like-btn:hover .bio-icon {
    color: #e1306c;
}

.dislike-btn:hover .bio-icon {
    color: #fcb045;
}

.bio-action-btn.active .bio-icon {
    opacity: 1;
}

.like-btn.active .bio-icon {
    color: #e1306c;
}

.dislike-btn.active .bio-icon {
    color: #fcb045;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .website-logo {
        font-size: 1.2rem;
        padding: 0.5rem 0.75rem 0.5rem 0;
    }
}

/* Improve touch interactions on mobile */
@media (max-width: 768px) {
    button, select, input {
        min-height: 44px;
    }

    .website-logo {
        font-size: 1.2rem;
        padding: 0.5rem 0.75rem 0.5rem 0;
    }

    .home-icon {
        padding: 0.5rem;
    }
}

/* Loading indicator for bio generation */
.loading {
    position: relative;
}

.loading::after {
    content: "...";
    display: inline-block;
    width: 20px;
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

/* Form input styling */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Autocomplete styling */
.form-input::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}

.form-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Datalist styling */
.form-input[list] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Font Face Declarations */
@font-face {
    font-family: 'Arial';
    src: local('Arial');
}

@font-face {
    font-family: 'Helvetica';
    src: local('Helvetica');
}

@font-face {
    font-family: 'Times New Roman';
    src: local('Times New Roman');
}

@font-face {
    font-family: 'Georgia';
    src: local('Georgia');
}

@font-face {
    font-family: 'Verdana';
    src: local('Verdana');
}

@font-face {
    font-family: 'Courier New';
    src: local('Courier New');
}

@font-face {
    font-family: 'Trebuchet MS';
    src: local('Trebuchet MS');
}

@font-face {
    font-family: 'Impact';
    src: local('Impact');
}

@font-face {
    font-family: 'Comic Sans MS';
    src: local('Comic Sans MS');
}

/* Custom Font Face Declarations */
@font-face {
    font-family: 'Henotica';
    src: url('/fonts/Henotica.ttf') format('truetype');
}

@font-face {
    font-family: 'MIXONE';
    src: url('/fonts/MIXONE.ttf') format('truetype');
}

@font-face {
    font-family: 'QuentonSerif';
    src: url('/fonts/QuentonSerif.otf') format('opentype');
}

@font-face {
    font-family: 'Copeland';
    src: url('/fonts/Copeland.otf') format('opentype');
}

@font-face {
    font-family: 'Qalogre';
    src: url('/fonts/Qalogre.otf') format('opentype');
}

@font-face {
    font-family: 'Celliqath';
    src: url('/fonts/Celliqath.otf') format('opentype');
}

@font-face {
    font-family: 'Kingneverdie';
    src: url('/fonts/Kingneverdie.otf') format('opentype');
}

/* Bio Preview Styling */
#generatedBioContainer {
    min-height: 100px;
    transition: font-family 0.3s ease;
}

/* Font Selector Styling */
#font-select {
    font-family: inherit;
}

/* Preview Font Option */
.font-preview {
    font-family: inherit;
    padding: 8px;
    border-radius: 4px;
    margin-top: 4px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}