/* Component Styles */

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

/* Quick Actions */
.quick-actions {
    margin-top: 3rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.action-card i {
    font-size: 2rem;
    color: #6366f1;
    margin-bottom: 1rem;
    display: block;
}

.action-card span {
    font-weight: 600;
    color: #1e293b;
}

/* Tags Display */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #eef2ff;
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.tag:hover {
    background: #ddd6fe;
    color: #5b21b6;
}

.tag.copied {
    background: #dcfce7;
    color: #166534;
}

.tag.copied::after {
    content: '✓';
    position: absolute;
    right: -8px;
    top: -8px;
    background: #22c55e;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Suggestions */
.suggestions {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.suggestions h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.suggestions li {
    color: #64748b;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.suggestions li::before {
    content: '💡';
    position: absolute;
    left: 0;
}

.suggestions li:last-child {
    border-bottom: none;
}

/* Keywords Table */
.keywords-table {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.keywords-table table {
    width: 100%;
    border-collapse: collapse;
}

.keywords-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.keywords-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

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

/* Competition Badges */
.competition-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.competition-low {
    background: #dcfce7;
    color: #166534;
}

.competition-medium {
    background: #fef3c7;
    color: #92400e;
}

.competition-high {
    background: #fecaca;
    color: #991b1b;
}

/* Trend Indicators */
.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    color: #059669;
}

.trend-down {
    color: #dc2626;
}

.trend-stable {
    color: #6b7280;
}

/* Script Sections */
.script-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.script-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h4 {
    color: #1e293b;
    font-weight: 600;
    flex: 1;
}

.section-content {
    color: #4b5563;
    line-height: 1.7;
    white-space: pre-wrap;
}

.script-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Title Cards */
.titles-container {
    display: grid;
    gap: 1rem;
}

.title-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.title-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.title-card.copied {
    border-color: #10b981;
    background: #f0fdf4;
}

.title-card.copied::after {
    content: 'Copied!';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.title-text {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.title-meta {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Thumbnails */
.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.thumbnail-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-info {
    padding: 1rem;
}

.thumbnail-quality {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.thumbnail-size {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.thumbnail-actions {
    display: flex;
    gap: 0.5rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.hidden { display: none; }
.block { display: block; }