/* iCity AI Tools Hub - Frontend Styles */

:root {
    --primary: #2563EB;
    --secondary: #7C3AED;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --light: #F3F4F6;
    --dark: #1F2937;
    --border: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.icity-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tools Grid */
.icity-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.tool-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tool-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.tool-name {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0;
    color: var(--dark);
}

.tool-description {
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

/* Tool Wrapper */
.icity-tool-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light);
    padding-bottom: 20px;
}

.tool-header-icon {
    font-size: 48px;
    margin-right: 20px;
}

.tool-header-info h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.tool-header-info p {
    color: #666;
    font-size: 14px;
}

/* Form Styles */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light);
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 14px;
    color: #666;
}

.file-upload-input {
    display: none;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEE2E2;
    color: #7F1D1D;
    border: 1px solid #FECACA;
}

.alert-warning {
    background: #FEF3C7;
    color: #78350F;
    border: 1px solid #FCD34D;
}

.alert-info {
    background: #DBEAFE;
    color: #0C2340;
    border: 1px solid #BAE6FD;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pricing */
.icity-pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.pricing-plan {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-plan:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-plan.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    transform: scale(1.05);
}

.pricing-plan h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark);
}

.price {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.price span {
    font-size: 16px;
    font-weight: normal;
    color: #666;
}

.features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.features li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .icity-tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .tool-wrapper {
        padding: 20px;
    }
    
    .pricing-plan.featured {
        transform: scale(1);
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-header-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0F172A;
        color: #E5E7EB;
    }
    
    .tool-card,
    .icity-tool-wrapper {
        background: #1E293B;
        border-color: #334155;
    }
    
    .tool-name,
    .tool-header-info h1 {
        color: #F1F5F9;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #334155;
        color: #F1F5F9;
        border-color: #475569;
    }
    
    .file-upload-area {
        background: #1E293B;
        border-color: #334155;
    }
}

/* Urdu/RTL Support */
[dir="rtl"] .tool-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tool-header-icon {
    margin-right: 0;
    margin-left: 20px;
}

/* Utility Classes */
.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

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

.text-muted {
    color: #999;
}

.hidden {
    display: none !important;
}
