/* ==================================================
   Nuclear Fancy Pants Edition™ -- NUCLEAR+++
   File: /assets/css/store.css
   Description: Store integration dashboard styles
   Last Edited: 2026-05-15
   ================================================== */

@import url('fonts.css');

/* ---- Layout ---- */

.amai-store-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
}

/* ---- Provider card ---- */

.amai-store-provider-card {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.amai-store-provider-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amai-store-provider-icon svg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.amai-store-provider-info {
    flex: 1;
}

.amai-store-provider-name {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1C1917;
    margin-bottom: 4px;
}

.amai-store-provider-status {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amai-store-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amai-store-status-dot--ok      { background: #22C55E; }
.amai-store-status-dot--pending { background: #F59E0B; }
.amai-store-status-dot--warn    { background: #EF4444; }

.amai-store-sync-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #D97757;
    background: transparent;
    border: 1.5px solid #D97757;
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.amai-store-sync-btn:hover {
    background: #D97757;
    color: #fff;
}

/* ---- How it works card ---- */

.amai-store-how-card {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.amai-store-how-eyebrow {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #D97757;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.amai-store-how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .amai-store-how-grid {
        grid-template-columns: 1fr;
    }
}

.amai-store-how-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.amai-store-how-icon {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 4px;
}

.amai-store-how-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #1C1917;
}

.amai-store-how-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
    line-height: 1.5;
}

.amai-store-how-approval {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #78716C;
    padding-top: 12px;
    border-top: 1px solid #F5EFE8;
}

.amai-store-how-approval a {
    color: #D97757;
    text-decoration: none;
}

.amai-store-how-approval a:hover {
    text-decoration: underline;
}

/* ---- Recent posts ---- */

.amai-store-recent-section {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.amai-store-section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1C1917;
    margin-bottom: 16px;
}

.amai-store-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.amai-store-recent-row {
    display: grid;
    grid-template-columns: 90px 1fr 140px;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #F5EFE8;
}

.amai-store-recent-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.amai-store-recent-channel {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #F5EFE8;
    color: #78716C;
    text-align: center;
    align-self: start;
    white-space: nowrap;
}

.amai-store-channel-facebook  { background: #EBF3FF; color: #1877F2; }
.amai-store-channel-instagram { background: #FDE8F0; color: #E1306C; }
.amai-store-channel-x         { background: #F3F3F3; color: #000; }
.amai-store-channel-tiktok    { background: #F3F3F3; color: #000; }
.amai-store-channel-linkedin  { background: #E8F0FB; color: #0A66C2; }
.amai-store-channel-google    { background: #FEF3E2; color: #EA8600; }

.amai-store-recent-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #44403C;
    line-height: 1.5;
}

.amai-store-recent-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.amai-store-recent-date {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #A8A29E;
}

.amai-store-recent-status {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.amai-store-status--draft    { background: #F5F5F4; color: #78716C; }
.amai-store-status--approved { background: #DCFCE7; color: #16A34A; }
.amai-store-status--posted   { background: #DBEAFE; color: #2563EB; }

/* ---- Empty state ---- */

.amai-store-empty-state {
    background: #fff;
    border: 1.5px solid #E7DDD5;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.amai-store-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.amai-store-empty-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1C1917;
    margin-bottom: 8px;
}

.amai-store-empty-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #78716C;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
}