/**
 * PoshListings Dashboard Styles - Premium Inter Typography
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #F8F9FA;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo positioning in header */
.header .nav-container .logo {
    margin-left: -1.5rem !important;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #F8F9FA;
    margin-top: 0;
}

.dashboard-sidebar {
    width: 280px;
    background: #1a202c;
    border-right: none;
    padding: 0;
    position: fixed;
    height: 100vh;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    padding: 0.75rem 0.75rem 0.25rem;
    margin-top: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-section-title:first-child {
    margin-top: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sidebar-item:hover {
    background: #2d3748;
    color: #fff;
}

.sidebar-item.active {
    background: #8B1538;
    color: #fff;
    font-weight: 600;
}

.sidebar-icon {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.dashboard-content-wrapper {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F8F9FA;
}

.dashboard-topbar {
    height: 64px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 10;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-usage-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: #f1f3f4;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #5f6368;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.plan-name {
    font-weight: 600;
    color: #202124;
}

.usage-stats {
    color: #5f6368;
}

.dashboard-topbar-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #202124;
    letter-spacing: -0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.15s;
}

.dashboard-user-menu:hover {
    background: #f1f3f4;
}

.dashboard-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.dashboard-main {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dashboard-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8eaed;
}

.dashboard-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #202124;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.2px;
}

.dashboard-header p {
    color: #5f6368;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.social-page-header {
    padding: 2rem 0;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.social-page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #202124;
    margin: 0 0 0.5rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.social-page-header p {
    font-size: 1rem;
    color: #5f6368;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.15s;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-color: #dadce0;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.75rem;
    color: #5f6368;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 400;
    color: #202124;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8125rem;
    color: #5f6368;
}

.stat-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-link:hover {
    text-decoration: underline;
}

.quick-actions {
    background: #FFFFFF;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.quick-actions h2 {
    font-size: 1rem;
    font-weight: 500; /* Subheadings use 500 */
    color: #202124;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Global Typography Rules */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.2px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 500; /* Subheadings use 500 */
}

h3 {
    font-size: 1.25rem;
    font-weight: 500; /* Subheadings use 500 */
}

/* Section titles and card titles */
.section-title,
.card-title,
.section-header h2 {
    font-weight: 500; /* Subheadings use 500 */
}

/* Body text, labels, menus */
body,
p,
label,
.menu-item,
.btn-outline,
.btn-primary {
    font-weight: 400;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-outline {
    padding: 0.625rem 1.5rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background: #1765cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-outline {
    background: #FFFFFF;
    color: #1a73e8;
    border-color: #dadce0;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
}

.recent-activity {
    background: #FFFFFF;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.recent-activity h2 {
    font-size: 1rem;
    font-weight: 500;
    color: #202124;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-list {
    min-height: 200px;
    color: #5f6368;
    font-size: 0.875rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: #FFFFFF;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8eaed;
}

.section-header h2 {
    font-size: 1.125rem;
    font-weight: 500; /* Subheadings use 500 */
    color: #202124;
    margin: 0;
    letter-spacing: -0.2px;
}

.section-header p {
    color: #5f6368;
    margin: 0.5rem 0 0 0;
    font-size: 0.875rem;
}

/* API Marketplace Grid */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.api-card {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.15s;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.api-card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-color: #dadce0;
}

.api-card.active {
    border-color: #1a73e8;
    background: #f8f9fa;
}

.api-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.api-card h3 {
    font-size: 1rem;
    font-weight: 500; /* Subheadings use 500 */
    color: #202124;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.2px;
}

.api-card p {
    color: #5f6368;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.api-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.feature-tag {
    background: #f1f3f4;
    color: #5f6368;
    padding: 0.25rem 0.625rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.api-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8eaed;
}

.price-free {
    color: #34a853;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge-active {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 20px;
}

/* Website Builder Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.project-card {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.15s;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.project-card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-color: #dadce0;
}

.project-card h3 {
    font-size: 0.9375rem;
    font-weight: 500; /* Subheadings use 500 */
    color: #202124;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.2px;
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.status-draft { background: #f1f3f4; color: #5f6368; }
.status-building { background: #fef7e0; color: #ea8600; }
.status-published { background: #e6f4ea; color: #137333; }
.status-archived { background: #f1f3f4; color: #5f6368; }

.project-link {
    display: block;
    color: #1a73e8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.8125rem;
}

.project-link:hover {
    text-decoration: underline;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #5f6368;
    font-size: 0.875rem;
}

/* Social Media Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.social-card {
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.15s;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.social-card:hover {
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    border-color: #dadce0;
}

.social-card.connected {
    border-color: #1a73e8;
    background: #f8f9fa;
}

.social-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: #202124;
    opacity: 0.8;
}

.social-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.connected {
    background: #e6f4ea;
    color: #137333;
}

.status-badge:not(.connected) {
    background: #f1f3f4;
    color: #5f6368;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        position: relative !important;
        height: auto !important;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .dashboard-content-wrapper {
        margin-left: 0;
    }
    
    .dashboard-main {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .dashboard-topbar {
        padding: 0 1rem;
    }
    
    .dashboard-topbar-title {
        font-size: 1.125rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .api-grid,
    .projects-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

