/* Blog Dashboard Styles */

/* Blog Post Content Override Tailwind */
article.content-card {
    background: white !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    padding: 2rem !important;
    margin-top: 2.5rem !important;
}

article.content-card h2 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #9333ea !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
}

article.content-card p {
    color: #374151 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
}

/* Link styling for blog content */
article.content-card a {
    color: #7C3AED !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

article.content-card a:hover {
    color: #5B21B6 !important;
    text-decoration: none !important;
}

article.content-card a:visited {
    color: #9333EA !important;
}

/* Logo section styling - enforce exact dimensions */
.section-logo img {
    width: var(--logo-width, 200px) !important;
    height: var(--logo-height, 100px) !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: none !important;
    max-height: none !important;
}

/* Ensure logo dimensions are not overridden by other CSS */
article.content-card .section-logo img {
    width: var(--logo-width, 200px) !important;
    height: var(--logo-height, 100px) !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: none !important;
    max-height: none !important;
}

/* Force exact logo dimensions - override any other styles */
.section-logo img,
article .section-logo img,
.content-card .section-logo img,
.post-content .section-logo img {
    width: var(--logo-width, 200px) !important;
    height: var(--logo-height, 100px) !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: var(--logo-width, 200px) !important;
    min-height: var(--logo-height, 100px) !important;
}

article.content-card ul {
    color: #374151 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
}

article.content-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

/* Blog post metadata */
article.content-card .mt-8 {
    margin-top: 2rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    text-align: left !important;
}

article.content-card .mt-8 p {
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

/* Ensure proper spacing */
article.content-card > * {
    margin-bottom: 1rem !important;
}

article.content-card > *:last-child {
    margin-bottom: 0 !important;
}

/* Blog Post Specific Classes */
.post-intro {
    color: #374151 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
}

.section-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #9333ea !important;
    margin-bottom: 1rem !important;
    text-align: left !important;
}

.section-content {
    color: #374151 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
}

.section-list {
    color: #374151 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    text-align: justify !important;
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
}

.section-list li {
    margin-bottom: 0.5rem !important;
}

.section-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
    margin: 1.5rem 0 !important;
}

.post-metadata {
    margin-top: 2rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    text-align: left !important;
}

.post-metadata p {
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

/* Navigation */
.blog-nav {
    background: linear-gradient(to right, #9333ea, #2563eb);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-nav .nav-link {
    color: #e0e7ff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-nav .nav-link:hover {
    color: #ffffff;
}

.blog-nav .welcome-badge {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
}

/* Dashboard Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-card.purple {
    --gradient-start: #8b5cf6;
    --gradient-end: #7c3aed;
}

.stat-card.green {
    --gradient-start: #10b981;
    --gradient-end: #059669;
}

.stat-card.yellow {
    --gradient-start: #f59e0b;
    --gradient-end: #d97706;
}

.stat-card.blue {
    --gradient-start: #3b82f6;
    --gradient-end: #2563eb;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.content-card-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to right, #faf5ff, #eff6ff);
    border-radius: 0.75rem 0.75rem 0 0;
}

.content-card-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.content-card-header p {
    color: #6b7280;
    font-size: 0.875rem;
}

.content-card-body {
    padding: 2rem;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-gradient:hover {
    background: linear-gradient(to right, #7c3aed, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background: linear-gradient(to right, #10b981, #059669);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-success:hover {
    background: linear-gradient(to right, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: #6b7280;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #ef4444;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.form-control.textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #9333ea;
    background-color: #faf5ff;
}

.file-upload-text {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

.table th {
    background-color: #f9fafb;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background-color: #ddd6fe;
    color: #6b28a9;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Section Cards */
.section-card {
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.section-card-header {
    padding: 1.5rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.section-card-body {
    padding: 1.5rem;
}

.section-type-badge {
    background-color: #ddd6fe;
    color: #6b28a9;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.section-order-badge {
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.edit {
    background-color: #3b82f6;
    color: white;
}

.action-btn.edit:hover {
    background-color: #2563eb;
}

.action-btn.preview {
    background-color: #10b981;
    color: white;
}

.action-btn.preview:hover {
    background-color: #059669;
}

.action-btn.delete {
    background-color: #ef4444;
    color: white;
}

.action-btn.delete:hover {
    background-color: #dc2626;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Preview Mode */
.preview-banner {
    background: linear-gradient(to right, #fef3c7, #fed7aa);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.preview-nav {
    background: linear-gradient(to right, #9333ea, #2563eb);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.floating-nav {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
}

.floating-nav .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-nav .nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-nav .nav-btn.dashboard {
    background-color: #9333ea;
    color: white;
}

.floating-nav .nav-btn.dashboard:hover {
    background-color: #7c3aed;
}

.floating-nav .nav-btn.edit {
    background-color: #3b82f6;
    color: white;
}

.floating-nav .nav-btn.edit:hover {
    background-color: #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .floating-nav {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem 0;
    }
    
    .floating-nav .nav-buttons {
        flex-direction: row;
    }
    
    .content-card-header,
    .content-card-body {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, #9333ea, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded-xl {
    border-radius: 0.75rem;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}
