/* Daily Digest Page Styles */

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.digest-table-container {
	padding: 2rem 0;
	overflow-x: auto;
}

.digest-table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	overflow: hidden;
}

.digest-table thead {
	background: rgba(255, 255, 255, 0.1);
}

.digest-table th {
	padding: 1.5rem 1rem;
	text-align: left;
	font-weight: 600;
	color: #ffffff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.digest-table td {
	padding: 1.5rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.9);
	vertical-align: top;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.digest-table tbody tr {
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.digest-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.08);
}

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

.loading-cell {
	text-align: center;
	padding: 3rem 1rem;
}

/* Table-specific styles for digest data */
.digest-date {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
}

.digest-title {
	font-weight: 600;
	color: #ffffff;
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.digest-synopsis {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	font-size: 0.95rem;
	white-space: pre-wrap;
	word-wrap: break-word;
	max-width: 100%;
}

.digest-category {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: inline-block;
}

.digest-id {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	font-family: 'Courier New', monospace;
}

.digest-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.digest-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.digest-synopsis {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.digest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.digest-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.digest-id {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.loading {
    text-align: center;
    padding: 4rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Individual Digest Page Styles */
.digest-detail {
	max-width: 1000px;
	margin: 0 auto;
	padding: 2rem;
}

.digest-info-section {
	margin-bottom: 3rem;
}

.digest-info-section h3 {
	color: #4ecdc4;
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.info-item {
	background: rgba(255, 255, 255, 0.05);
	padding: 1rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item strong {
	color: #4ecdc4;
	font-weight: 600;
}

.synopsis-content {
	background: rgba(255, 255, 255, 0.05);
	padding: 2rem;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	line-height: 1.8;
}

.raw-data {
	background: rgba(0, 0, 0, 0.3);
	padding: 2rem;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow-x: auto;
}

.raw-data pre {
	margin: 0;
	color: #e0e0e0;
	font-family: 'Courier New', monospace;
	font-size: 0.9rem;
	line-height: 1.4;
}

.raw-data code {
	background: none;
	padding: 0;
	color: inherit;
}

/* Theme and Article Styles */
.theme-section {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 2rem;
	margin-bottom: 2rem;
}

.theme-title {
	color: #4ecdc4;
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 1rem;
	text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.theme-reason {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.theme-quote {
	margin-bottom: 2rem;
}

.theme-quote blockquote {
	border-left: 4px solid #4ecdc4;
	padding-left: 1.5rem;
	margin: 0 0 1rem 0;
	font-style: italic;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
	font-size: 1.1rem;
}

.theme-articles h5 {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

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

.article-link {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 1.5rem;
	transition: all 0.3s ease;
}

.article-link:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

.article-title {
	color: #4ecdc4;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.4;
	display: block;
	margin-bottom: 0.5rem;
	transition: color 0.3s ease;
}

.article-title:hover {
	color: #ffffff;
	text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.article-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}

.article-date {
	font-weight: 500;
}

.article-id {
	font-family: 'Courier New', monospace;
	color: rgba(255, 255, 255, 0.5);
}

.article-reason {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
	line-height: 1.5;
}

.article-reason strong {
	color: #4ecdc4;
}

.digest-detail .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.digest-detail .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.digest-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #4ecdc4;
}

.back-link::before {
    content: '←';
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}
	
	.hero-subtitle {
		font-size: 1.1rem;
	}
	
	.digest-table-container {
		padding: 1rem 0;
	}
	
	.digest-table {
		font-size: 0.9rem;
	}
	
	.digest-table th,
	.digest-table td {
		padding: 1rem 0.5rem;
	}
	
	.digest-title {
		font-size: 1rem;
	}
	
	.digest-synopsis {
		font-size: 0.85rem;
	}
	
	.digest-detail .hero-title {
		font-size: 2rem;
	}
	
	.digest-content {
		padding: 1.5rem;
	}
	
	.info-grid {
		grid-template-columns: 1fr;
	}
	
	.theme-section {
		padding: 1.5rem;
	}
	
	.theme-title {
		font-size: 1.1rem;
	}
	
	.theme-quote blockquote {
		font-size: 1rem;
		padding-left: 1rem;
	}
	
	.sources-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.article-link {
		padding: 1rem;
	}
	
	.article-title {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .digest-card {
        padding: 1rem;
    }
    
    .digest-title {
        font-size: 1.1rem;
    }
    
    .digest-synopsis {
        -webkit-line-clamp: 3;
    }
} 