/**
 * AICT Account Dashboard Styles
 * @since 1.14.0
 */

/* ---- Login Page ---- */
.aict-account-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
}

.aict-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.aict-login-icon {
    margin-bottom: 1.5rem;
}

.aict-login-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.aict-login-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.aict-login-register {
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.aict-login-register a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.aict-login-register a:hover {
    text-decoration: underline;
}

/* ---- Buttons ---- */
.aict-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.aict-btn-primary {
    background: #ff6b35;
    color: #fff;
}
.aict-btn-primary:hover {
    background: #e55a28;
    color: #fff;
    text-decoration: none;
}

.aict-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.aict-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    text-decoration: none;
}

.aict-btn-ghost {
    background: transparent;
    color: #64748b;
}
.aict-btn-ghost:hover {
    background: #f8fafc;
    color: #1e293b;
    text-decoration: none;
}

.aict-btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
}

.aict-btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
}

/* ---- Dashboard Layout ---- */
.aict-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.aict-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.aict-dashboard-greeting h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.aict-dashboard-email {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.aict-dashboard-actions {
    display: flex;
    gap: 0.75rem;
}

.aict-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.aict-dashboard-col-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aict-dashboard-col-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ---- Cards ---- */
.aict-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.aict-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.aict-card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.aict-card-body {
    padding: 1.25rem;
}

/* ---- Badges ---- */
.aict-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aict-badge-pro {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.aict-badge-free {
    background: #f1f5f9;
    color: #64748b;
}

/* ---- Subscription Card ---- */
.aict-sub-details {
    margin-bottom: 1rem;
}

.aict-sub-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.aict-sub-row:last-child {
    border-bottom: none;
}

.aict-sub-label {
    color: #64748b;
    font-size: 0.875rem;
}

.aict-sub-value {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
}

.aict-sub-warning .aict-sub-value {
    color: #f59e0b;
}

.aict-sub-free-text {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1rem;
    line-height: 1.6;
}

/* ---- Usage Card ---- */
.aict-usage-meter {
    margin-bottom: 0.5rem;
}

.aict-usage-bar {
    height: 10px;
    background: #f1f5f9;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.aict-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8f65);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.aict-usage-fill.unlimited {
    background: linear-gradient(90deg, #6366f1, #a78bfa);
}

.aict-usage-text {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.aict-usage-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.aict-usage-label {
    color: #64748b;
    font-size: 0.875rem;
}

.aict-usage-unlimited {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6366f1;
}

.aict-usage-reset {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
}

/* ---- Recent Tools List ---- */
.aict-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aict-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid #f8fafc;
}

.aict-recent-item:last-child {
    border-bottom: none;
}

.aict-recent-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.aict-recent-name {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9rem;
}

.aict-recent-item a:hover .aict-recent-name {
    color: #ff6b35;
}

.aict-recent-category {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.125rem;
}

.aict-recent-time {
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-left: 1rem;
}

/* ---- Favorites List ---- */
.aict-favorites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aict-favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.aict-favorite-item:last-child {
    border-bottom: none;
}

.aict-favorite-item a {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.aict-favorite-item a:hover {
    color: #ff6b35;
}

.aict-favorite-remove {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.aict-favorite-remove:hover {
    color: #ef4444;
}

/* ---- Suggested Posts ---- */
.aict-suggested-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aict-suggested-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f8fafc;
}

.aict-suggested-item:last-child {
    border-bottom: none;
}

.aict-suggested-item a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-decoration: none;
    gap: 1rem;
}

.aict-suggested-title {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aict-suggested-item a:hover .aict-suggested-title {
    color: #ff6b35;
}

.aict-suggested-date {
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* ---- Quick Links ---- */
.aict-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aict-links-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.aict-links-list li:last-child {
    border-bottom: none;
}

.aict-links-list a {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.aict-links-list a:hover {
    color: #ff6b35;
}

.aict-link-upgrade {
    color: #6366f1 !important;
    font-weight: 600 !important;
}

/* ---- Empty States ---- */
.aict-empty-state {
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem 0;
    margin: 0;
    line-height: 1.6;
}

.aict-empty-state a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .aict-dashboard {
        padding: 1.5rem 1rem 3rem;
    }

    .aict-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .aict-dashboard-greeting h1 {
        font-size: 1.35rem;
    }

    .aict-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .aict-dashboard-col-side {
        order: -1;
    }
}

@media (max-width: 480px) {
    .aict-login-card {
        padding: 2rem 1.5rem;
    }

    .aict-dashboard-actions {
        width: 100%;
    }

    .aict-dashboard-actions .aict-btn {
        flex: 1;
        text-align: center;
    }
}
