* Pin Stripe Background Pattern */
.pin-stripe-bg {
    background-color: #2d1b42;
    background-image: 
        linear-gradient(45deg, rgba(156, 39, 176, 0.1) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.1) 75%),
        linear-gradient(-45deg, rgba(156, 39, 176, 0.1) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.1) 75%);
    background-size: 10px 10px;
}

/* Four-way Gradient Background */
body {
    background: radial-gradient(circle at top left, #4a148c, transparent 70%),
                radial-gradient(circle at top right, #311b4d, transparent 70%),
                radial-gradient(circle at bottom left, #3d1b56, transparent 70%),
                radial-gradient(circle at bottom right, #2d1b42, transparent 70%),
                #22152e;
}

/* SEO Article Section */
.seo-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    background-image: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 1px, transparent 1px),
                      linear-gradient(45deg, rgba(156, 39, 176, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 8px;
    padding: 25px;
}

.article-list-container {
    background-color: var(--card-secondary-bg);
    background-image: linear-gradient(90deg, rgba(156, 39, 176, 0.07) 1px, transparent 1px);
    background-size: 10px 10px;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(156, 39, 176, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(156, 39, 176, 0.3);
}

.article-list-header h4 {
    color: var(--primary-light);
    margin: 0;
    font-weight: 600;
}

.article-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--card-secondary-bg);
}

.article-list::-webkit-scrollbar {
    width: 8px;
}

.article-list::-webkit-scrollbar-track {
    background: rgba(74, 20, 140, 0.2);
    border-radius: 10px;
}

.article-list::-webkit-scrollbar-thumb {
    background-color: var(--primary-dark);
    border-radius: 10px;
}

.article-item {
    background-color: var(--card-bg);
    background-image: linear-gradient(135deg, rgba(156, 39, 176, 0.1), transparent);
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(156, 39, 176, 0.3);
    background-image: linear-gradient(135deg, rgba(156, 39, 176, 0.15), transparent);
}

.article-item.draft {
    border-left-color: var(--warning-color);
    opacity: 0.9;
}

.article-info {
    flex: 1;
}

.article-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}

.article-date {
    font-size: 0.8em;
    color: var(--text-secondary);
}

.article-actions {
    display: flex;
    gap: 5px;
}

/* Article Editor */
.article-editor {
    background-color: var(--card-secondary-bg);
    background-image: 
        linear-gradient(45deg, rgba(156, 39, 176, 0.05) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.05) 75%),
        linear-gradient(-45deg, rgba(156, 39, 176, 0.05) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.05) 75%);
    background-size: 10px 10px;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(156, 39, 176, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(156, 39, 176, 0.3);
}

.editor-header h4 {
    color: var(--primary-light);
    margin: 0;
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(156, 39, 176, 0.3);
    background-color: rgba(38, 25, 56, 0.7);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.25);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-published {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--published-color);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.status-draft {
    background-color: rgba(255, 171, 0, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(255, 171, 0, 0.3);
}

/* Front Page Articles Section */
.articles-section {
    padding: 50px 0;
    text-align: center;
    background-image: 
        linear-gradient(45deg, rgba(156, 39, 176, 0.03) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.03) 75%),
        linear-gradient(-45deg, rgba(156, 39, 176, 0.03) 25%, transparent 25%, transparent 75%, rgba(156, 39, 176, 0.03) 75%);
    background-size: 20px 20px;
}

.articles-section h2 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background-color: var(--card-bg);
    background-image: 
        radial-gradient(circle at top left, rgba(156, 39, 176, 0.2), transparent 70%),
        radial-gradient(circle at bottom right, rgba(156, 39, 176, 0.1), transparent 70%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(156, 39, 176, 0.3);
}

.article-card-image {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    position: relative;
    overflow: hidden;
}

.article-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at top left, rgba(208, 92, 227, 0.4), transparent 70%),
        radial-gradient(circle at bottom right, rgba(106, 0, 128, 0.4), transparent 70%);
    mix-blend-mode: overlay;
}

.article-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--primary-dark));
    opacity: 0.7;
}

.article-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.article-card-summary {
    color: var(--text-color);
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.5;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(156, 39, 176, 0.2);
    font-size: 0.8em;
    color: var(--text-secondary);
}

.read-more-btn {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: var(--primary-light);
}

/* Article Detail Page */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(156, 39, 176, 0.2);
    background-image: 
        radial-gradient(circle at top left, rgba(156, 39, 176, 0.15), transparent 70%),
        radial-gradient(circle at bottom right, rgba(156, 39, 176, 0.1), transparent 70%);
}

.article-detail-header {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2);
}

.article-detail-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--primary-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.article-detail-meta {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.article-detail-content {
    line-height: 1.7;
    color: var(--text-color);
}

/* Button Styling */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(156, 39, 176, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.btn-secondary:hover {
    background: rgba(156, 39, 176, 0.25);
    color: var(--primary-light);
}

.btn-danger {
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff4081, #ff1744);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85em;
}

/* Table Styling for Articles List */
.articles-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(156, 39, 176, 0.2);
}

.articles-table th {
    background-color: rgba(156, 39, 176, 0.2);
    color: var(--primary-light);
    text-align: left;
    padding: 10px 15px;
    font-weight: 600;
}

.articles-table td {
    padding: 10px 15px;
    border-top: 1px solid rgba(156, 39, 176, 0.1);
}

.articles-table tr {
    background-color: var(--card-bg);
    transition: background-color 0.2s;
}

.articles-table tr:hover {
    background-color: rgba(49, 27, 77, 0.9);
}

.article-draft {
    background-color: rgba(255, 171, 0, 0.05) !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .article-card-image {
        height: 120px;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-detail {
        padding: 15px;
    }
}