/* Instagram Bio Counter Styles */
.bio-preview {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-info h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #262626;
    font-size: 1rem;
}

.bio-text {
    color: #262626;
    line-height: 1.4;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.counter-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #f8fffe;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #d1fae5;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.3rem;
}

.stat-number.warning {
    color: #d97706;
}

.stat-number.danger {
    color: #dc2626;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 0%;
}

.progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

section textarea {
    width: 100%;
    min-height: 150px;
    margin-bottom: 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    resize: vertical;
    background: #fafbfc;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

section textarea:focus {
    border-color: #3d8a59;
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 138, 89, 0.1);
    background: #fff;
}

.bio-buttons {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bio-buttons button {
    background: #3d8a59;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 2px 6px rgba(61, 138, 89, 0.2);
}

.bio-buttons button:hover {
    background: #347a4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 138, 89, 0.3);
}

.bio-buttons button.secondary {
    background: #6c757d;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.2);
}

.bio-buttons button.secondary:hover {
    background: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.bio-tips {
    background: #f8fffe;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.bio-tips h3 {
    color: #065f46;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

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

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.tip-card h4 {
    color: #374151;
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
}

.tip-card p {
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.emoji-picker {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.emoji-picker h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    text-align: center;
}

.emoji-categories {
    display: grid;
    gap: 1.5rem;
}

.emoji-category h5 {
    margin: 0 0 0.8rem 0;
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emoji-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emoji-item {
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.emoji-item:hover {
    background: #e5f3ff;
    transform: scale(1.1);
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.copy-notification.show {
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .phone-mockup {
        width: 280px;
        padding: 1rem;
    }
    
    .counter-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .bio-buttons {
        flex-direction: column;
    }
    
    .bio-buttons button {
        min-width: 100%;
        flex: none;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tip-card {
        padding: 1rem;
    }
    
    .bio-tips {
        padding: 1.5rem;
    }
    
    .emoji-categories {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        width: 250px;
        padding: 0.8rem;
    }
    
    .profile-pic {
        width: 50px;
        height: 50px;
    }
    
    .counter-stats {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .bio-tips {
        padding: 1rem;
    }
    
    .tip-card {
        padding: 0.8rem;
    }
    
    .tip-icon {
        font-size: 1.5rem;
    }
}
