217 lines
3.6 KiB
CSS
217 lines
3.6 KiB
CSS
/* Post Detail page - Full prompt view, rating, example output, unlock button */
|
|
|
|
/* Full width layout */
|
|
.layout > div[style*="flex:1"] {
|
|
margin: 0 !important;
|
|
max-width: 100% !important;
|
|
padding: 0 !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
.post-detail-main {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 20px 32px;
|
|
background: transparent;
|
|
}
|
|
|
|
.post-detail-container {
|
|
max-width: 900px;
|
|
width: 100%;
|
|
background: #fff;
|
|
border-radius: 18px;
|
|
box-shadow: 0 2px 8px rgba(59,130,246,0.06);
|
|
padding: 32px;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
.post-detail-container:hover {
|
|
box-shadow: 0 8px 20px rgba(59,130,246,0.12);
|
|
}
|
|
|
|
/* Header */
|
|
.post-header {
|
|
margin-bottom: 28px;
|
|
border-bottom: 1px solid #eef2f7;
|
|
padding-bottom: 20px;
|
|
}
|
|
.post-title {
|
|
font-size: 2rem;
|
|
font-weight: 800;
|
|
margin-bottom: 12px;
|
|
}
|
|
.post-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
.category {
|
|
background: #f1f5f9;
|
|
padding: 4px 12px;
|
|
border-radius: 30px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
color: #3b82f6;
|
|
}
|
|
.updated {
|
|
font-size: 0.85rem;
|
|
color: #64748b;
|
|
}
|
|
.post-stats {
|
|
display: flex;
|
|
gap: 20px;
|
|
font-size: 0.9rem;
|
|
color: #475569;
|
|
}
|
|
.post-stats i {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
/* Prompt Section */
|
|
.prompt-section {
|
|
margin-bottom: 28px;
|
|
}
|
|
.prompt-section h2 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
.prompt-content {
|
|
background: #f8fafc;
|
|
padding: 20px;
|
|
border-radius: 16px;
|
|
font-size: 1rem;
|
|
line-height: 1.5;
|
|
color: #1e293b;
|
|
}
|
|
.prompt-content ul {
|
|
margin-top: 12px;
|
|
padding-left: 20px;
|
|
}
|
|
.prompt-content li {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* Rating & Like */
|
|
.rating-section {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
margin-bottom: 28px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid #eef2f7;
|
|
}
|
|
.rating-stars {
|
|
display: flex;
|
|
gap: 20px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
}
|
|
.rating-stars i {
|
|
color: #f59e0b;
|
|
margin-right: 6px;
|
|
}
|
|
.like-btn {
|
|
background: none;
|
|
border: 1px solid #e2e8f0;
|
|
padding: 8px 18px;
|
|
border-radius: 30px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
.like-btn:hover {
|
|
background: #f1f5f9;
|
|
border-color: #cbd5e1;
|
|
}
|
|
.like-btn i {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
/* Example Output Section */
|
|
.example-section {
|
|
margin-bottom: 32px;
|
|
}
|
|
.example-section h2 {
|
|
font-size: 1.3rem;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
}
|
|
.example-content {
|
|
background: #ffffff;
|
|
border: 1px solid #eef2f7;
|
|
border-radius: 16px;
|
|
padding: 20px;
|
|
}
|
|
.example-content h3 {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
color: #3b82f6;
|
|
}
|
|
.example-output-text {
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
color: #334155;
|
|
}
|
|
.example-output-text p {
|
|
margin-bottom: 12px;
|
|
}
|
|
.example-image {
|
|
margin-top: 16px;
|
|
}
|
|
.example-image img {
|
|
max-width: 100%;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
/* Unlock Section */
|
|
.unlock-section {
|
|
text-align: center;
|
|
margin-top: 16px;
|
|
}
|
|
.unlock-btn {
|
|
background: var(--gradient);
|
|
border: none;
|
|
padding: 14px 32px;
|
|
border-radius: 40px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: white;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
}
|
|
.unlock-btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.post-detail-main {
|
|
padding: 16px;
|
|
}
|
|
.post-detail-container {
|
|
padding: 24px;
|
|
}
|
|
.post-title {
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|
|
@media (max-width: 480px) {
|
|
.post-detail-container {
|
|
padding: 20px;
|
|
}
|
|
.rating-section {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
.prompt-content {
|
|
padding: 16px;
|
|
}
|
|
} |