/**
 * Foxco URL Redirect Checker - Frontend Styles
 * Powered by Foxco.net
 */

/* Container */
.foxco-redirect-checker-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.foxco-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.foxco-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.foxco-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.foxco-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.foxco-brand-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.foxco-brand-name {
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Main Layout */
.foxco-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 968px) {
    .foxco-main {
        grid-template-columns: 1fr;
    }
}

.foxco-input-section,
.foxco-results-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Tabs */
.foxco-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e5e7eb;
}

.foxco-tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.foxco-tab-button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.foxco-tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.foxco-tab-icon {
    font-size: 18px;
}

.foxco-tab-content {
    display: none;
}

.foxco-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Form Elements */
.foxco-description {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.foxco-textarea {
    width: 100%;
    min-height: 280px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.foxco-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.foxco-textarea::placeholder {
    color: #9ca3af;
}

/* File Upload */
.foxco-file-upload-wrapper {
    margin-bottom: 20px;
}

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

.foxco-file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #4b5563;
}

.foxco-file-label:hover {
    background: #e5e7eb;
    border-color: #667eea;
    color: #667eea;
}

.foxco-file-icon {
    font-size: 20px;
}

.foxco-file-name {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Buttons */
.foxco-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.foxco-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
}

.foxco-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.foxco-button-primary:active {
    transform: translateY(0);
}

.foxco-button-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.foxco-button-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.foxco-button-secondary:hover {
    background: #e5e7eb;
    border-color: #667eea;
    color: #667eea;
}

.foxco-button-icon {
    font-size: 18px;
}

/* Results Section */
.foxco-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.foxco-results-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

/* Progress Bar */
.foxco-progress {
    margin-bottom: 25px;
}

.foxco-progress-bar {
    width: 100%;
    height: 28px;
    background: #f3f4f6;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.foxco-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
}

.foxco-progress-text {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Empty State */
.foxco-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.foxco-empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 15px;
}

.foxco-empty-state p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
}

/* Summary Stats */
.foxco-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
}

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

.foxco-stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.foxco-stat-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Results Table */
.foxco-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.foxco-results-table th,
.foxco-results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.foxco-results-table th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.foxco-results-table tr:hover {
    background: #f9fafb;
}

.foxco-results-table tr:last-child td {
    border-bottom: none;
}

.foxco-url {
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

/* Status Badges */
.foxco-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.foxco-status-badge.redirect {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.foxco-status-badge.no-redirect {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

.foxco-status-badge.error {
    background: linear-gradient(135deg, #fad961 0%, #f76b1c 100%);
    color: #fff;
}

.foxco-status-code {
    font-weight: 700;
    color: #667eea;
    font-family: 'Courier New', monospace;
}

/* Dark Theme */
.foxco-redirect-checker-container[data-theme="dark"] {
    color: #e5e7eb;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-title {
    color: #f3f4f6;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-input-section,
.foxco-redirect-checker-container[data-theme="dark"] .foxco-results-section {
    background: #1f2937;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-textarea {
    background: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-textarea:focus {
    background: #1f2937;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-results-table {
    background: #1f2937;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-results-table th {
    background: rgba(102, 126, 234, 0.15);
    color: #f3f4f6;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-results-table tr:hover {
    background: #111827;
}

.foxco-redirect-checker-container[data-theme="dark"] .foxco-url {
    color: #d1d5db;
}

/* Responsive */
@media (max-width: 768px) {
    .foxco-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .foxco-title {
        font-size: 24px;
    }
    
    .foxco-results-table {
        font-size: 11px;
    }
    
    .foxco-results-table th,
    .foxco-results-table td {
        padding: 10px;
    }
    
    .foxco-summary {
        grid-template-columns: 1fr 1fr;
    }
    
    .foxco-button {
        width: 100%;
        justify-content: center;
    }
}
