/* Dark Purple Theme Article Styles with Pin Stripes and Gradients */

/* Base Variables */
:root {
    /* Dark Purple Theme Colors */
    --primary-color: #9c27b0;
    --primary-light: #d05ce3;
    --primary-dark: #6a0080;
    --secondary-color: #ce93d8;
    --accent-color: #7c4dff;
    
    --text-color: #f3e5f5;
    --text-secondary: #d1c4e9;
    
    --card-bg: rgba(38, 25, 56, 0.9);
    --card-secondary-bg: rgba(49, 27, 77, 0.85);
    --border-color: #4a148c;
    
    --success-color: #00c853;
    --warning-color: #ffab00;
    --error-color: #ff1744;
    
    /* Effectiveness Colors */
    --low-effect-color: #e74c3c;
    --medium-effect-color: #f39c12;
    --high-effect-color: #27ae60;
}

/* Pin Stripe Background */
.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;
}

/* Article Container */
.article-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    color: var(--text-color);
}

.article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at top left, rgba(74, 20, 140, 0.5), transparent 70%),
        radial-gradient(circle at top right, rgba(49, 27, 77, 0.5), transparent 70%),
        radial-gradient(circle at bottom left, rgba(61, 27, 86, 0.5), transparent 70%),
        radial-gradient(circle at bottom right, rgba(45, 27, 66, 0.5), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Article Single */
.article-single {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(156, 39, 176, 0.2);
    position: relative;
}

/* Article Header */
.article-header {
    padding: 1.5rem;
    position: relative;
    background-color: rgba(49, 27, 77, 0.9);
    border-bottom: 1px solid rgba(156, 39, 176, 0.3);
}

.gradient-header {
    background-image: 
        linear-gradient(135deg, rgba(156, 39, 176, 0.2), transparent),
        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: cover, 10px 10px, 10px 10px;
}

.article-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.article-category.technology {
    background: linear-gradient(135deg, #9c27b0, #6a0080);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-author, .article-date, .article-stats {
    display: flex;
    align-items: center;
}

.article-author i, .article-date i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.article-stats {
    display: flex;
    gap: 1rem;
}

.article-stats i {
    margin-right: 0.3rem;
    color: var(--secondary-color);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: rgba(156, 39, 176, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

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

/* Featured Image */
.article-featured-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at top left, rgba(156, 39, 176, 0.3), transparent 70%),
        radial-gradient(circle at bottom right, rgba(106, 0, 128, 0.3), transparent 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Article Content */
.article-content {
    padding: 2rem 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--card-bg);
    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;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, .article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* Effectiveness Score */
.article-effectiveness {
    padding: 1.5rem;
    background-color: rgba(38, 25, 56, 0.8);
    border-top: 1px solid rgba(156, 39, 176, 0.2);
}

.effectiveness-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-light);
}

.effectiveness-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.score-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
    pointer-events: none;
}

.low-effectiveness {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.medium-effectiveness {
    background: linear-gradient(135deg, #f39c12, #d35400);
}

.high-effectiveness {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.score-description {
    flex: 1;
}

.score-description p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.score-value {
    color: var(--primary-light);
    font-weight: bold;
}

/* Article Actions */
.article-actions {
    padding: 1.5rem;
    border-top: 1px solid rgba(156, 39, 176, 0.2);
    background-color: rgba(38, 25, 56, 0.7);
}

.share-buttons h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.share-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.share-btn {
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.facebook {
    background: linear-gradient(135deg, #3b5998, #2d4373);
}

.twitter {
    background: linear-gradient(135deg, #1da1f2, #0c85d0);
}

.linkedin {
    background: linear-gradient(135deg, #0077b5, #005582);
}

.email {
    background: linear-gradient(135deg, #7f8c8d, #576364);
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border: 1px solid rgba(156, 39, 176, 0.2);
    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;
}

.sidebar-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    color: var(--primary-light);
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

/* Related Articles */
.related-article {
    margin-bottom: 1.5rem;
}

.related-article:last-child {
    margin-bottom: 0;
}

.related-article a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.related-article a:hover {
    transform: translateY(-3px);
}

.related-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.related-info {
    flex: 1;
}

.related-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.related-category {
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #9c27b0, #6a0080);
}

.related-effectiveness {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    color: #fff;
}

/* Subscribe Form */
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.subscribe-form input[type="email"] {
    padding: 0.8rem;
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: rgba(38, 25, 56, 0.7);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.25);
    outline: none;
}

.subscribe-form button {
    padding: 0.8rem;
    background: linear-gradient(135deg, #9c27b0, #6a0080);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.subscribe-form button:hover {
    background: linear-gradient(135deg, #d05ce3, #9c27b0);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Monetization */
.sidebar-section.monetization {
    background: linear-gradient(135deg, rgba(49, 27, 77, 0.9), rgba(38, 25, 56, 0.9));
}

.sponsored-content {
    text-align: center;
}

.sponsored-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.sponsored-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-light);
}

.sponsored-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sponsored-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #9c27b0, #6a0080);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sponsored-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Admin Editing Styles */
[data-editable] {
    position: relative;
    transition: outline 0.2s, background-color 0.2s;
}

.admin-mode [data-editable]:hover {
    outline: 2px dashed rgba(156, 39, 176, 0.5);
    cursor: pointer;
    background-color: rgba(156, 39, 176, 0.1);
}

.admin-mode [data-editable].editing {
    outline: 2px solid var(--primary-color);
    background-color: rgba(156, 39, 176, 0.15);
}

.admin-mode [data-editable]::after {
    content: '✏️';
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-mode [data-editable]:hover::after {
    opacity: 1;
}

.edit-toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.edit-toolbar button {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.edit-toolbar .save-btn {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: white;
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-featured-image {
        height: 300px;
    }
    
    .effectiveness-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .score-circle {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .share-buttons-container {
        flex-direction: column;
    }
    
    .article-featured-image {
        height: 200px;
    }
}