/**
 * FlowContent Dashboard Styles
 */

/* Reset et Base */
.flowcontent-dashboard {
    max-width: 1000px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1f2937;
}

/* Header */
.fc-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
}

.fc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fc-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.fc-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.fc-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Header Right */
.fc-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Credits Widget (Header) */
.fc-credits-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.fc-credits-icon {
    font-size: 16px;
}

.fc-credits-amount {
    font-size: 18px;
    font-weight: 700;
}

.fc-credits-label {
    opacity: 0.9;
    font-weight: 400;
}

/* Credits Section (Detailed) */
.fc-credits-section {
    background: #f9fafb;
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
}

.fc-credits-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #374151;
}

.fc-credits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.fc-credit-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.fc-credit-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.fc-credit-label {
    font-size: 14px;
    color: #6b7280;
}

.fc-credit-sub {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.fc-credit-total .fc-credit-value { color: #6366f1; }
.fc-credit-free .fc-credit-value { color: #10b981; }
.fc-credit-purchased .fc-credit-value { color: #f59e0b; }

.fc-plan-badge {
    font-size: 16px !important;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
}

.fc-plan-free { background: #e5e7eb; color: #374151; }
.fc-plan-starter { background: #dbeafe; color: #1d4ed8; }
.fc-plan-pro { background: #fef3c7; color: #d97706; }
.fc-plan-business { background: #dcfce7; color: #15803d; }
.fc-plan-agency { background: #ede9fe; color: #7c3aed; }
.fc-plan-enterprise { background: #ede9fe; color: #7c3aed; }

.fc-credits-reset {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 20px 0;
}

.fc-credits-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .fc-credits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .fc-header-right {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hero Section */
.fc-hero {
    text-align: center;
    padding: 40px 20px;
}

.fc-hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #111827;
}

.fc-hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Connect Box */
.fc-connect-box {
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    margin: 0 auto 60px auto;
}

.fc-connect-box h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.fc-connect-box > p {
    color: #6b7280;
    margin: 0 0 24px 0;
}

.fc-connect-form {
    display: flex;
    gap: 12px;
}

.fc-connect-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.fc-connect-form input:focus {
    outline: none;
    border-color: #6366f1;
}

.fc-connect-help {
    margin-top: 16px;
    font-size: 14px;
}

.fc-connect-help a {
    color: #6366f1;
    text-decoration: none;
}

.fc-connect-help a:hover {
    text-decoration: underline;
}

/* Buttons */
.fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.fc-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.fc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: white;
}

.fc-btn-outline {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.fc-btn-outline:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.fc-btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Features Section */
.fc-features {
    padding: 20px;
}

.fc-features h2 {
    text-align: center;
    font-size: 28px;
    margin: 0 0 40px 0;
}

.fc-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Cards */
.fc-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s;
}

.fc-card:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
    transform: translateY(-4px);
}

.fc-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fc-icon-sync { background: #dbeafe; color: #2563eb; }
.fc-icon-ai { background: #fae8ff; color: #a855f7; }
.fc-icon-seo { background: #dcfce7; color: #16a34a; }
.fc-icon-social { background: #fef3c7; color: #d97706; }
.fc-icon-woo { background: #fce7f3; color: #db2777; }
.fc-icon-analytics { background: #e0e7ff; color: #4f46e5; }

.fc-card h3 {
    font-size: 18px;
    margin: 0 0 12px 0;
}

.fc-card p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Connected State */
.fc-connected {
    text-align: center;
    padding: 60px 20px;
}

.fc-connected-icon {
    margin-bottom: 24px;
}

.fc-connected h1 {
    font-size: 32px;
    margin: 0 0 8px 0;
    color: #111827;
}

.fc-connected-site {
    font-size: 20px;
    color: #6b7280;
    margin: 0 0 4px 0;
}

.fc-connected-id {
    font-size: 14px;
    color: #9ca3af;
    font-family: monospace;
    margin: 0 0 8px 0;
}

.fc-connected-woo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #10b981;
    margin: 0 0 32px 0;
}

.fc-connected-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Quick Links */
.fc-quick-links {
    max-width: 600px;
    margin: 0 auto;
}

.fc-quick-links h3 {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.fc-quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.fc-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.fc-quick-link:hover {
    background: #f3f4f6;
    color: #6366f1;
}

/* Footer */
.fc-footer {
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid #e5e7eb;
    margin-top: 40px;
}

.fc-footer p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.fc-footer a {
    color: #6b7280;
    text-decoration: none;
}

.fc-footer a:hover {
    color: #6366f1;
}

/* Loading state */
.fc-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Message */
.fc-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.fc-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.fc-message-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-hero h1 { font-size: 28px; }
    .fc-connect-form { flex-direction: column; }
    .fc-features-grid { grid-template-columns: 1fr; }
    .fc-quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .fc-connected-actions { flex-direction: column; align-items: center; }
}
