/**
 * Tweet Archive Page Styles
 * Styles for individual tweet archive pages with social sharing
 */

/* Container and Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin: 1rem 0 2rem 0;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-muted);
    font-weight: bold;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 500;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator.status-draft {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.status-indicator.status-archived {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.3);
    color: #6c757d;
}

.status-icon {
    font-size: 1.1rem;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.btn-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-admin:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Tweet Archive Article */
.tweet-archive {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

/* Tweet Header */
.tweet-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tweet-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.tweet-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.stats {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.stat-count {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-muted);
}

/* Tweet Content */
.tweet-content {
    margin-bottom: 2rem;
}

.tweet-image-container {
    margin: 1.5rem 0;
    text-align: center;
}

.tweet-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.tweet-description {
    margin: 1.5rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.tweet-description p {
    margin: 0 0 1rem 0;
}

.original-tweet-link {
    margin: 2rem 0;
    text-align: center;
}

.btn-tweet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #1da1f2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-light);
}

.btn-tweet-link:hover {
    background: #1991db;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.external-icon {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Tags */
.tweet-tags {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.tags-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

/* Sharing Section */
.sharing-section {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.sharing-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-light);
}

.btn-copy {
    background: var(--accent-color);
    color: white;
}

.btn-copy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-twitter {
    background: #1da1f2;
    color: white;
}

.btn-twitter:hover {
    background: #1991db;
    transform: translateY(-1px);
}

.btn-facebook {
    background: #4267b2;
    color: white;
}

.btn-facebook:hover {
    background: #365899;
    transform: translateY(-1px);
}

.btn-linkedin {
    background: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background: #006396;
    transform: translateY(-1px);
}

.copy-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 6px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Related Tweets Section */
.related-tweets {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-tweet-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.related-tweet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.related-tweet-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-tweet-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-tweet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.related-tweet-card:hover .related-tweet-image img {
    transform: scale(1.05);
}

.related-tweet-content {
    padding: 1rem;
}

.related-tweet-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-tweet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.related-stats {
    display: flex;
    gap: 0.75rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .tweet-archive {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tweet-title {
        font-size: 1.5rem;
    }
    
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .sharing-buttons {
        flex-direction: column;
    }
    
    .btn-share {
        justify-content: center;
        width: 100%;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .breadcrumb-list {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.3rem;
    }
}

@media (max-width: 480px) {
    .tweet-archive {
        padding: 1rem;
    }
    
    .tweet-title {
        font-size: 1.3rem;
    }
    
    .admin-actions {
        justify-content: center;
    }
    
    .sharing-section {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .admin-actions,
    .sharing-section,
    .related-tweets,
    .main-footer {
        display: none;
    }
    
    .tweet-archive {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .tweet-image {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    .tweet-title {
        color: #000;
    }
    
    .tweet-description {
        color: #333;
    }
}

/* Dark Theme Adjustments */
.dark-theme .tweet-archive {
    background: var(--card-bg-dark);
    border-color: var(--border-color-dark);
}

.dark-theme .status-indicator.status-draft {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.4);
}

.dark-theme .status-indicator.status-archived {
    background: rgba(108, 117, 125, 0.15);
    border-color: rgba(108, 117, 125, 0.4);
}

.dark-theme .tweet-tags {
    background: var(--bg-secondary-dark);
    border-color: var(--border-color-dark);
}

.dark-theme .sharing-section {
    background: var(--bg-secondary-dark);
    border-color: var(--border-color-dark);
}

.dark-theme .related-tweet-card {
    background: var(--card-bg-dark);
    border-color: var(--border-color-dark);
}

/* Light Theme Adjustments */
.light-theme .tweet-archive {
    background: #ffffff;
    border-color: #e9ecef;
}

.light-theme .tweet-tags {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.light-theme .sharing-section {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.light-theme .related-tweet-card {
    background: #ffffff;
    border-color: #e9ecef;
}