/* Social Media Tools - Professional Styling */

/* Hero Section */
.social-hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 20px;
    margin-bottom: 60px;
}

.social-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-hero .lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
}

/* Platform Stats */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.platform-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.platform-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.platform-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.platform-metric {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.platform-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tool Tabs */
.social-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.social-tab {
    padding: 15px 30px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    top: 2px;
}

.social-tab:hover,
.social-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-content.active {
    display: block;
}

/* Post Scheduler */
.scheduler-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.post-composer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
}

.composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.platform-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.platform-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-btn.selected {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}

.post-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    margin-bottom: 20px;
}

.post-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.media-upload {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-upload:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.scheduler-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.scheduler-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    color: var(--text);
    font-size: 14px;
}

.post-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-schedule {
    background: var(--primary);
    color: #0b0f1a;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-schedule:hover {
    background: #b8941f;
    transform: translateY(-1px);
}

.btn-draft {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-draft:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Scheduled Posts */
.scheduled-posts {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.scheduled-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.post-platform {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-content {
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-schedule-time {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.post-actions-mini {
    display: flex;
    gap: 8px;
}

.btn-mini {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Analytics Dashboard */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.metric-change {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.metric-change.positive {
    color: #10b981;
}

.metric-change.negative {
    color: #ef4444;
}

.metric-chart {
    height: 100px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
}

/* Content Calendar */
.calendar-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
}

.calendar-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: rgba(212, 175, 55, 0.1);
}

.calendar-day.has-posts {
    border: 2px solid var(--primary);
}

.calendar-day.today {
    background: rgba(59, 130, 246, 0.2);
}

.day-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.day-posts {
    font-size: 10px;
    color: var(--primary);
    text-align: center;
}

/* Engagement Monitor */
.engagement-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.engagement-timeline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #b8941f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b0f1a;
    font-size: 14px;
}

.timeline-content {
    flex: 1;
}

.timeline-action {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 12px;
    color: var(--muted);
}

.engagement-sidebar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
}

.top-performers {
    margin-bottom: 30px;
}

.performer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.performer-content {
    font-size: 14px;
    color: var(--text);
    flex: 1;
    margin-right: 10px;
}

.performer-metric {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-hero h1 {
        font-size: 2.5rem;
    }
    
    .scheduler-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .engagement-container {
        grid-template-columns: 1fr;
    }
    
    .social-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .platform-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scheduler-options {
        grid-template-columns: 1fr;
    }
    
    .post-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .platform-stats {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        font-size: 12px;
    }
    
    .platform-selector {
        flex-wrap: wrap;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.success-flash {
    animation: successFlash 0.5s ease;
}

@keyframes successFlash {
    0%, 100% {
        background: rgba(255, 255, 255, 0.03);
    }
    50% {
        background: rgba(16, 185, 129, 0.2);
    }
}

/* Dark/Light Theme Support */
[data-theme="light"] .post-composer,
[data-theme="light"] .scheduled-posts,
[data-theme="light"] .analytics-card,
[data-theme="light"] .calendar-container,
[data-theme="light"] .engagement-timeline,
[data-theme="light"] .engagement-sidebar {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .calendar-day {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .media-upload {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .media-upload:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
}