/* Instagram-specific styles */

/* Instagram Preview Section */
.instagram-preview {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.phone-frame {
    background: #000;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 100%;
}

.instagram-post {
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    min-height: 200px;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-pic {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
}

.profile-pic::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--background);
    border-radius: 50%;
}

.post-info {
    flex: 1;
}

.username {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.location {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.post-content {
    padding: 16px;
}

.post-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-primary);
    word-wrap: break-word;
}

/* Instagram Tips Section */
.instagram-tips {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem auto 4rem auto;
    max-width: 800px;
}

@media (max-width: 840px) {
    .instagram-tips {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.instagram-tips h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

.tip-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Font-specific styles for Instagram fonts */

/* Trendy Fonts */
.dancing-script-ig { font-family: 'Dancing Script', cursive; font-weight: 600; }
.pacifico-ig { font-family: 'Pacifico', cursive; }
.lobster-ig { font-family: 'Lobster', cursive; }
.satisfy-ig { font-family: 'Satisfy', cursive; }
.kalam-ig { font-family: 'Kalam', cursive; font-weight: 400; }
.caveat-ig { font-family: 'Caveat', cursive; font-weight: 500; }

/* Bold/Statement Fonts */
.righteous-ig { font-family: 'Righteous', cursive; }
.fredoka-one-ig { font-family: 'Fredoka One', cursive; }
.bungee-ig { font-family: 'Bungee', cursive; }
.comfortaa-ig { font-family: 'Comfortaa', cursive; font-weight: 600; }

/* Script Fonts */
.allura-ig { font-family: 'Allura', cursive; }
.great-vibes-ig { font-family: 'Great Vibes', cursive; }
.alex-brush-ig { font-family: 'Alex Brush', cursive; }
.mr-dafoe-ig { font-family: 'Mr Dafoe', cursive; }
.sacramento-ig { font-family: 'Sacramento', cursive; }
.parisienne-ig { font-family: 'Parisienne', cursive; }
.indie-flower-ig { font-family: 'Indie Flower', cursive; }
.handlee-ig { font-family: 'Handlee', cursive; }
.architects-daughter-ig { font-family: 'Architects Daughter', cursive; }
.patrick-hand-ig { font-family: 'Patrick Hand', cursive; }

/* Minimal/Clean Fonts */
.montserrat-ig { font-family: 'Montserrat', sans-serif; font-weight: 500; }
.nunito-ig { font-family: 'Nunito', sans-serif; font-weight: 500; }
.open-sans-ig { font-family: 'Open Sans', sans-serif; font-weight: 500; }
.lato-ig { font-family: 'Lato', sans-serif; font-weight: 400; }
.quicksand-ig { font-family: 'Quicksand', sans-serif; font-weight: 500; }
.poppins-ig { font-family: 'Poppins', sans-serif; font-weight: 500; }

/* Category tabs */
.font-categories {
    margin: 1rem 0;
    padding: 0 1rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.5rem 1rem;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.category-tab:hover {
    color: white;
    border-color: transparent;
}

.category-tab:hover::before {
    left: 0;
}

.category-tab.active {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}

.category-tab.active::before {
    left: 0;
}

/* Font preview enhancements for Instagram fonts */
.font-preview {
    font-size: 1.4rem;
    font-weight: 500;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

/* Make script fonts larger for better visibility */
.font-preview.dancing-script-ig,
.font-preview.pacifico-ig,
.font-preview.lobster-ig,
.font-preview.allura-ig,
.font-preview.great-vibes-ig,
.font-preview.alex-brush-ig,
.font-preview.mr-dafoe-ig,
.font-preview.sacramento-ig,
.font-preview.parisienne-ig {
    font-size: 1.6rem;
}

/* Make bold fonts slightly larger */
.font-preview.righteous-ig,
.font-preview.fredoka-one-ig,
.font-preview.bungee-ig {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Instagram gradient backgrounds for special elements */
.instagram-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-gradient-text {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .phone-frame {
        max-width: 300px;
        padding: 6px;
        border-radius: 25px;
    }
    
    .instagram-post {
        border-radius: 18px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tip-card {
        padding: 1rem;
    }
    
    .instagram-tips h2 {
        font-size: 1.5rem;
    }
    
    .category-tabs {
        justify-content: flex-start;
    }
    
    .category-tab {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        max-width: 280px;
    }
    
    .post-header {
        padding: 10px 12px;
    }
    
    .post-content {
        padding: 12px;
    }
    
    .post-text {
        font-size: 0.9rem;
    }
}


/* Animation for font items */
.font-item {
    animation: fadeInUp 0.3s ease-out;
}

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

/* Instagram-style loading animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

