/* FBeed Dashboard Styles - Minimalistic & Mobile Friendly */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1877f2;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    word-break: break-word;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Table Container */
.table-container {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    margin-bottom: 24px;
}

/* Table */
.feed-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    table-layout: auto;
}

.feed-table thead {
    background: #f8fafc;
}

.feed-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.feed-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.feed-table tbody tr:hover {
    background-color: #f8fafc;
}

.feed-table tbody tr:last-child {
    border-bottom: none;
}

.feed-table td {
    padding: 12px;
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Feed Title Column */
.feed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.rss-icon-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.rss-icon-inline:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

.rss-icon-inline:active {
    opacity: 0.8;
    transform: scale(0.95);
}

.rss-icon-inline svg {
    display: block;
}

.feed-name {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.feed-name:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-count {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.875rem;
}

/* Time Column */
.time-cell {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.time-cell .date-line {
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.time-cell .time-line {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}



/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    header {
        padding: 16px 12px;
        margin-bottom: 16px;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    .stats {
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .stat-card {
        padding: 8px 6px;
    }
    
    .stat-value {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .feed-table {
        min-width: 100%;
        table-layout: fixed;
    }
    
    .feed-table th,
    .feed-table td {
        padding: 10px 8px;
        font-size: 0.8125rem;
        word-wrap: break-word;
    }
    
    .feed-table th:first-child,
    .feed-table td:first-child {
        width: 75%;
    }

    .feed-table th:nth-child(2),
    .feed-table td:nth-child(2) {
        width: 25%;
    }
    
    .btn-copy {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.125rem;
    }

    .feed-table th,
    .feed-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }

    .feed-title {
        gap: 4px;
    }

    .rss-icon-inline {
        padding: 3px;
    }

    .rss-icon-inline svg {
        width: 14px;
        height: 14px;
    }

    .feed-name {
        font-size: 0.8125rem;
        line-height: 1.3;
    }

    .post-count {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .time-cell .date-line {
        font-size: 0.7rem;
    }

    .time-cell .time-line {
        font-size: 0.65rem;
    }
}
