/* Instagram Username Checker Plugin Styles */
.iuc-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.iuc-container * {
    box-sizing: border-box;
}

/* Main Checker Card */
.iuc-checker-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.iuc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.iuc-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 28px;
    color: white;
}

.iuc-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.iuc-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* Form Styles */
.iuc-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.iuc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.iuc-input-wrapper {
    position: relative;
}

.iuc-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    font-size: 1.125rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    outline: none;
}

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

.iuc-char-count {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #6b7280;
}

.iuc-input-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.iuc-input-info i {
    color: #3b82f6;
}

.iuc-error {
    color: #dc2626;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iuc-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.iuc-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.iuc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.iuc-btn-text,
.iuc-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Results Section */
.iuc-results {
    margin-bottom: 2rem;
}

.iuc-result-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    animation: slideIn 0.3s ease-out;
}

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

.iuc-result-card.available {
    border-color: #10b981;
    background: linear-gradient(to bottom, #ffffff, #f0fdf4);
}

.iuc-result-card.taken {
    border-color: #ef4444;
    background: linear-gradient(to bottom, #ffffff, #fef2f2);
}

.iuc-result-card.error {
    border-color: #f59e0b;
    background: linear-gradient(to bottom, #ffffff, #fffbeb);
}

.iuc-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.iuc-result-card.available .iuc-result-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.iuc-result-card.taken .iuc-result-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.iuc-result-card.error .iuc-result-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.iuc-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.iuc-result-username {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #374151;
}

.iuc-result-message {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
}

.iuc-result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.iuc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.iuc-action-btn.primary {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.iuc-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.iuc-action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.iuc-action-btn.secondary:hover {
    background: #e5e7eb;
}

.iuc-action-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Recent Checks Section */
.iuc-recent-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.iuc-recent-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-align: center;
    color: #1f2937;
}

.iuc-recent-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iuc-recent-table {
    width: 100%;
    border-collapse: collapse;
}

.iuc-recent-table th {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.iuc-recent-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.iuc-recent-table tr:last-child td {
    border-bottom: none;
}

.iuc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.iuc-status-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.iuc-status-badge.taken {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.iuc-status-badge.error {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.iuc-use-btn {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.iuc-use-btn:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.iuc-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.iuc-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #d1d5db;
}

/* Tips Section */
.iuc-tips-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iuc-tips-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-align: center;
    color: #1f2937;
}

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

.iuc-tip {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.iuc-tip-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.iuc-tip-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.iuc-tip-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.iuc-tip-content h4 {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .iuc-container {
        padding: 0 1rem;
    }
    
    .iuc-checker-card {
        padding: 1.5rem;
    }
    
    .iuc-title {
        font-size: 1.5rem;
    }
    
    .iuc-input {
        font-size: 1rem;
        padding: 0.875rem 3.5rem 0.875rem 0.875rem;
    }
    
    .iuc-submit-btn {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .iuc-tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .iuc-tip {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .iuc-recent-table-wrapper {
        overflow-x: auto;
    }
    
    .iuc-recent-table {
        min-width: 500px;
    }
}