/* TheSustain Connect - Public Styles */

:root {
    --tsc-primary: #667eea;
    --tsc-secondary: #764ba2;
    --tsc-success: #28a745;
    --tsc-danger: #dc3545;
    --tsc-dark: #1a1a2e;
    --tsc-light: #f8f9fa;
    --tsc-gray: #6c757d;
}

/* Dashboard */
.tsc-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tsc-dashboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.tsc-dashboard-header h1 {
    margin: 0;
    font-size: 28px;
    color: var(--tsc-dark);
}

.tsc-plan-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--tsc-primary), var(--tsc-secondary));
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Grid */
.tsc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tsc-stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tsc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.tsc-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--tsc-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.tsc-stat-label {
    font-size: 14px;
    color: var(--tsc-gray);
}

/* Quick Actions */
.tsc-quick-actions h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--tsc-dark);
}

.tsc-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.tsc-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--tsc-dark);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tsc-action-card:hover {
    border-color: var(--tsc-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.tsc-action-card .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--tsc-primary);
    margin-bottom: 12px;
}

.tsc-action-card span:last-child {
    font-weight: 500;
    font-size: 14px;
}

.tsc-action-card.tsc-locked {
    background: var(--tsc-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.tsc-action-card.tsc-locked .dashicons {
    color: var(--tsc-gray);
}

.tsc-action-card.tsc-locked small {
    font-size: 11px;
    color: var(--tsc-gray);
    margin-top: 4px;
}

/* Upgrade Banner */
.tsc-upgrade-banner {
    background: linear-gradient(135deg, var(--tsc-primary), var(--tsc-secondary));
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.tsc-upgrade-banner h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.tsc-upgrade-banner p {
    margin: 0 0 20px;
    opacity: 0.9;
}

.tsc-upgrade-banner .button {
    background: #fff !important;
    color: var(--tsc-primary) !important;
    border: none !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
}

/* Login Required */
.tsc-login-required {
    text-align: center;
    padding: 60px 20px;
    background: var(--tsc-light);
    border-radius: 12px;
}

.tsc-login-required p {
    margin-bottom: 20px;
    color: var(--tsc-gray);
}

/* Intentions */
.tsc-intentions {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tsc-intentions-header {
    text-align: center;
    margin-bottom: 30px;
}

.tsc-intentions-intro {
    color: var(--tsc-gray);
    font-size: 15px;
}

.tsc-intention-form {
    margin-bottom: 30px;
}

.tsc-intention-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.tsc-intention-form textarea:focus {
    outline: none;
    border-color: var(--tsc-primary);
}

.tsc-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.tsc-char-count {
    font-size: 13px;
    color: var(--tsc-gray);
}

.tsc-intentions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tsc-intention-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tsc-intention-content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tsc-intention-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.tsc-intention-date {
    color: var(--tsc-gray);
}

.tsc-delete-intention {
    background: none;
    border: none;
    color: var(--tsc-danger);
    cursor: pointer;
    font-size: 13px;
}

.tsc-delete-intention:hover {
    text-decoration: underline;
}

.tsc-no-intentions {
    text-align: center;
    padding: 40px;
    color: var(--tsc-gray);
}

.tsc-intentions-privacy {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.tsc-intentions-privacy small {
    color: var(--tsc-gray);
}

/* Microsoft Auth */
.tsc-microsoft-auth {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tsc-connected .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--tsc-success);
    margin-bottom: 16px;
}

.tsc-microsoft-auth h3 {
    margin: 0 0 12px;
}

.tsc-microsoft-auth p {
    color: var(--tsc-gray);
    margin-bottom: 24px;
}

/* Shop Wrapper */
.tsc-shop-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tsc-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--tsc-primary);
    text-decoration: none;
    font-weight: 500;
}

.tsc-back-link:hover {
    text-decoration: underline;
}

/* Dokan Header */
.tsc-dokan-header {
    margin-bottom: 20px;
}

.tsc-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--tsc-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--tsc-dark);
    font-size: 14px;
    transition: background 0.2s ease;
}

.tsc-back-btn:hover {
    background: #e9ecef;
}

/* Microsoft Status Badge */
.tsc-ms-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.tsc-ms-connected {
    background: #d4edda;
    color: #155724;
}

.tsc-ms-disconnected {
    background: #f8d7da;
    color: #721c24;
}

/* Locked Feature */
.tsc-locked-feature {
    text-align: center;
    padding: 40px;
    background: var(--tsc-light);
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .tsc-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tsc-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tsc-microsoft-auth {
        margin: 20px;
        padding: 30px 20px;
    }
}
