/**
 * AECO Content Display Styles
 * Matches the AECO Weekly Briefing design system
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.aeco-hero {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 80px 40px 60px;
    text-align: center;
    margin-bottom: 40px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 24px;
}

/* Ensure all hero variants have rounded corners */
.aeco-hero.purple,
.aeco-hero.blue,
.aeco-hero.green {
    border-radius: 24px;
}

.aeco-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.aeco-hero .aeco-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.aeco-hero .aeco-value-props {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.aeco-hero .aeco-value-prop {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.aeco-hero .aeco-value-prop span {
    font-size: 1.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aeco-hero {
        padding: 50px 20px 40px;
    }
    
    .aeco-hero h1 {
        font-size: 2rem;
    }
    
    .aeco-hero .aeco-subtitle {
        font-size: 1.1rem;
    }
    
    .aeco-hero .aeco-value-props {
        gap: 20px;
        flex-direction: column;
    }
}

/* ==========================================================================
   SUBSCRIBE BOX
   ========================================================================== */

.aeco-subscribe-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin: -40px auto 60px;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.aeco-subscribe-box h2 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.aeco-subscribe-box p {
    color: #718096;
    margin-bottom: 25px;
}

.aeco-email-form {
    display: flex;
    gap: 10px;
}

.aeco-email-form input[type="email"] {
    flex: 1;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.aeco-email-form input[type="email"]:focus {
    outline: none;
    border-color: #ed8936;
}

.aeco-email-form button {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.3s;
}

.aeco-email-form button:hover {
    opacity: 0.9;
}

.aeco-stats {
    text-align: center;
    margin-top: 20px;
    color: #a0aec0;
    font-size: 0.95rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aeco-subscribe-box {
        padding: 30px 20px;
        margin: -30px 20px 40px;
    }
    
    .aeco-email-form {
        flex-direction: column;
    }
    
    .aeco-email-form button {
        width: 100%;
    }
}

/* ==========================================================================
   SAMPLE ISSUE / CONTENT CONTAINER
   ========================================================================== */

.aeco-sample-issue {
    background: white;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aeco-sample-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.aeco-sample-header h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.aeco-sample-header .aeco-issue-meta {
    color: #718096;
    font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aeco-sample-issue {
        padding: 30px 20px;
    }
    
    .aeco-sample-header h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   SECTION TITLES
   ========================================================================== */

.aeco-section-title {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
}

/* Alternative section title styles for different content types */
.aeco-section-title.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aeco-section-title.green {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

.aeco-section-title.purple {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

/* ==========================================================================
   BRIEFING ITEMS (Post Cards)
   ========================================================================== */

.aeco-briefing-items {
    margin-bottom: 40px;
}

.aeco-briefing-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.aeco-briefing-item:last-child {
    border-bottom: none;
}

.aeco-briefing-item h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.aeco-briefing-item h3 a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.aeco-briefing-item h3 a:hover {
    color: #ed8936;
}

.aeco-category-badge {
    display: inline-block;
    background: #fed7d7;
    color: #c53030;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aeco-briefing-content {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.aeco-briefing-content p {
    margin-bottom: 12px;
}

.aeco-briefing-content ul,
.aeco-briefing-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.aeco-briefing-content ul li,
.aeco-briefing-content ol li {
    margin-bottom: 6px;
}

.aeco-key-finding,
.aeco-action-item {
    background: #f7fafc;
    padding: 12px 15px;
    border-left: 4px solid #ed8936;
    margin: 15px 0;
    color: #2d3748;
}

.aeco-key-finding strong,
.aeco-action-item strong {
    color: #ed8936;
}

.aeco-source {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 10px;
}

.aeco-source a {
    color: #ed8936;
    text-decoration: none;
    font-weight: 500;
}

.aeco-source a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ARCHIVE GRID
   ========================================================================== */

.aeco-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.aeco-archive-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.aeco-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.aeco-archive-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.aeco-archive-date {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.aeco-archive-highlights {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.aeco-read-more {
    color: #ed8936;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s;
}

.aeco-read-more:hover {
    transform: translateX(5px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aeco-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FEATURED POSTS
   ========================================================================== */

.aeco-featured-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.aeco-featured-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.aeco-featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.aeco-featured-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.aeco-featured-post-content {
    padding: 20px;
}

.aeco-featured-post h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.aeco-featured-post h3 a {
    color: #2d3748;
    text-decoration: none;
}

.aeco-featured-post h3 a:hover {
    color: #ed8936;
}

.aeco-featured-post-excerpt {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.aeco-testimonials {
    margin-bottom: 60px;
}

.aeco-testimonial {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ed8936;
}

.aeco-testimonial p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    font-style: italic;
}

.aeco-testimonial .aeco-author {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 600;
    font-style: normal;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.aeco-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.aeco-text-center {
    text-align: center;
}

.aeco-mt-40 {
    margin-top: 40px;
}

.aeco-mb-40 {
    margin-bottom: 40px;
}

.aeco-gradient-text {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   SINGLE POST TEMPLATE STYLES
   ========================================================================== */

.aeco-single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.aeco-single-post-header {
    margin-bottom: 30px;
}

.aeco-single-post-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.2;
}

.aeco-single-post-meta {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 20px;
}

.aeco-single-post-content {
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.1rem;
}

.aeco-single-post-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 30px 0 15px;
}

.aeco-single-post-content h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 25px 0 12px;
}

.aeco-single-post-content p {
    margin-bottom: 15px;
}

.aeco-single-post-content ul,
.aeco-single-post-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.aeco-single-post-content ul li,
.aeco-single-post-content ol li {
    margin-bottom: 8px;
}

.aeco-single-post-content blockquote {
    border-left: 4px solid #ed8936;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f7fafc;
    font-style: italic;
    color: #4a5568;
}

.aeco-single-post-content a {
    color: #ed8936;
    text-decoration: none;
}

.aeco-single-post-content a:hover {
    text-decoration: underline;
}

.aeco-single-post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.aeco-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.aeco-post-tag {
    background: #f7fafc;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s;
}

.aeco-post-tag:hover {
    background: #e2e8f0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aeco-single-post {
        padding: 30px 15px;
    }
    
    .aeco-single-post-title {
        font-size: 2rem;
    }
    
    .aeco-single-post-content {
        font-size: 1rem;
    }
}

/* ==========================================================================
   LOADING & ANIMATIONS
   ========================================================================== */

.aeco-loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.aeco-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #ed8936;
    border-radius: 50%;
    animation: aeco-spin 0.8s linear infinite;
}

@keyframes aeco-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade in animation */
.aeco-fade-in {
    animation: aeco-fadeIn 0.5s ease-in;
}

@keyframes aeco-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   STACK ALERTS - TOOL REVIEW STYLES
   ========================================================================== */

/* Hero for Stack Alerts (Purple) */
.aeco-hero.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Filters Section */
.aeco-filters-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: -30px auto 40px;
    max-width: 1100px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aeco-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.aeco-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.aeco-filter-group select,
.aeco-filter-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

/* Tools Grid */
.aeco-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.aeco-tool-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-top: 4px solid #667eea;
}

.aeco-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.aeco-tool-card-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.aeco-tool-category {
    display: inline-block;
    background: #e6fffa;
    color: #047857;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-right: 10px;
}

.aeco-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.aeco-badge-new-audit,
.aeco-badge-new-tool {
    background: #fef3c7;
    color: #92400e;
}

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

.aeco-badge-recommended {
    background: #d1fae5;
    color: #065f46;
}

.aeco-tool-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.aeco-tool-company {
    color: #718096;
    font-size: 0.95rem;
}

.aeco-tool-card-body {
    padding: 25px;
}

.aeco-tool-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.aeco-stars {
    color: #f59e0b;
    font-size: 1.2rem;
}

.aeco-rating-score {
    font-weight: 700;
    color: #2d3748;
}

.aeco-tool-summary {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.aeco-tool-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #a0aec0;
}

@media (max-width: 768px) {
    .aeco-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MARKET PULSE - TIMELINE STYLES
   ========================================================================== */

/* Hero for Market Pulse (Green) */
.aeco-hero.green {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

/* Timeline Layout */
.aeco-timeline {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.aeco-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #48bb78, #38a169);
}

.aeco-timeline-item {
    position: relative;
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aeco-timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 35px;
    width: 20px;
    height: 20px;
    background: #48bb78;
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #f7fafc;
}

.aeco-pulse-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.aeco-cat-funding {
    background: #d1fae5;
    color: #065f46;
}

.aeco-cat-ma {
    background: #dbeafe;
    color: #1e40af;
}

.aeco-cat-ipo {
    background: #fce7f3;
    color: #9f1239;
}

.aeco-pulse-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.aeco-pulse-header h3 {
    font-size: 1.8rem;
    color: #2d3748;
}

.aeco-pulse-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #48bb78;
}

.aeco-pulse-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.aeco-detail-item {
    display: flex;
    flex-direction: column;
}

.aeco-detail-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 5px;
}

.aeco-detail-value {
    font-weight: 600;
    color: #2d3748;
}

.aeco-pulse-summary {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.aeco-pulse-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #a0aec0;
}

@media (max-width: 768px) {
    .aeco-timeline {
        padding-left: 30px;
    }
    
    .aeco-timeline::before {
        left: 10px;
    }
    
    .aeco-timeline-item::before {
        left: -28px;
    }
    
    .aeco-pulse-header {
        flex-direction: column;
    }
    
    .aeco-pulse-amount {
        margin-top: 10px;
    }
}

/* ==========================================================================
   IMPLEMENTATION GUIDES STYLES
   ========================================================================== */

.aeco-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.aeco-guide-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-top: 4px solid #9f7aea;
}

.aeco-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.aeco-guide-card-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.aeco-guide-meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.aeco-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f7fafc;
    color: #4a5568;
}

.aeco-difficulty-beginner {
    background: #d1fae5;
    color: #065f46;
}

.aeco-difficulty-intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.aeco-difficulty-advanced {
    background: #fce7f3;
    color: #9f1239;
}

.aeco-guide-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.aeco-guide-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.aeco-guide-card-body {
    padding: 25px;
}

.aeco-guide-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.aeco-guide-includes {
    margin-bottom: 20px;
}

.aeco-guide-includes h4 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.aeco-guide-includes ul {
    margin-left: 20px;
    color: #4a5568;
}

.aeco-guide-includes li {
    margin-bottom: 6px;
}

.aeco-guide-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.aeco-read-guide {
    display: inline-block;
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.aeco-read-guide:hover {
    opacity: 0.9;
}

.aeco-free-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.aeco-premium-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .aeco-guides-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   VIEW TOGGLE & SECTION HEADERS
   ========================================================================== */

.aeco-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.aeco-section-header h2 {
    font-size: 2rem;
    color: #2d3748;
}

.aeco-view-toggle {
    display: flex;
    gap: 10px;
}

.aeco-view-toggle button {
    padding: 8px 16px;
    border: 2px solid #2d3748;
    background: white;
    color: #2d3748;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.aeco-view-toggle button:hover {
    background: #2d3748;
    color: white;
    border-color: #2d3748;
}

.aeco-view-toggle button.active {
    background: #1a202c;
    color: white;
    border-color: #1a202c;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.aeco-pagination {
    text-align: center;
    margin: 40px 0;
}

.aeco-pagination-buttons {
    display: inline-flex;
    gap: 10px;
}

.aeco-pagination button,
.aeco-pagination a {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s;
}

.aeco-pagination button:hover,
.aeco-pagination a:hover {
    border-color: #cbd5e0;
}

.aeco-pagination button.active,
.aeco-pagination a.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* ==========================================================================
   ADDITIONAL UTILITY CLASSES
   ========================================================================== */

.aeco-hero.green .aeco-subtitle {
    opacity: 0.95;
}

.aeco-hero.purple .aeco-subtitle {
    opacity: 0.95;
}

.aeco-text-orange {
    color: #ed8936;
}

.aeco-text-purple {
    color: #9f7aea;
}

.aeco-text-green {
    color: #48bb78;
}

.aeco-bg-orange-light {
    background: #fed7d7;
}

.aeco-bg-purple-light {
    background: #e9d8fd;
}

.aeco-bg-green-light {
    background: #d1fae5;
}

/* ==========================================================================
   AECO.DIGITAL SCORE DISPLAY (0-100 scale)
   ========================================================================== */

.aeco-tool-rating-score {
    background: linear-gradient(135deg, #f7fafc 0%, #e6fffa 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.aeco-score-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #667eea;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.aeco-score-value {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.aeco-score-total {
    font-size: 1.5rem;
    color: #a0aec0;
    font-weight: 400;
}

/* Score color variants */
.aeco-score-excellent {
    color: #38a169 !important;
}

.aeco-score-great {
    color: #667eea !important;
}

.aeco-score-good {
    color: #ed8936 !important;
}

.aeco-score-needs-improvement {
    color: #e53e3e !important;
}

/* Admin preview in meta box */
#aeco-score-preview {
    margin-top: 10px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

#aeco-score-preview .preview-label {
    font-size: 0.7rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

#aeco-score-preview .preview-score {
    font-size: 2rem;
    font-weight: 800;
}

#aeco-score-preview .preview-total {
    font-size: 1rem;
    color: #a0aec0;
}

#aeco-score-preview .preview-rating {
    font-size: 0.85rem;
    color: #4a5568;
    margin-top: 5px;
}

/* ==========================================================================
   GIANT TRACKER STYLES
   ========================================================================== */

/* Hero for Giant Tracker (Blue) */
.aeco-hero.blue {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
}

/* Giant Tracker Grid */
.aeco-giant-tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.aeco-giant-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    border-left: 4px solid #3182ce;
}

.aeco-giant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.aeco-giant-card-header {
    padding: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.aeco-giant-company-tags {
    margin-bottom: 12px;
}

.aeco-company-tag {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.aeco-update-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.aeco-giant-card h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.aeco-giant-company-name {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 600;
}

.aeco-giant-card-body {
    padding: 25px;
}

.aeco-giant-summary {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.aeco-giant-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.aeco-giant-date {
    font-size: 0.9rem;
    color: #a0aec0;
}

/* Impact level indicators */
.aeco-impact-critical {
    background: #fed7d7;
    color: #c53030;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aeco-impact-high {
    background: #feebc8;
    color: #c05621;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aeco-impact-medium {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.aeco-impact-low {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Company filter buttons */
.aeco-company-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.aeco-company-filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.aeco-company-filter-btn:hover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.aeco-company-filter-btn.active {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

@media (max-width: 768px) {
    .aeco-giant-tracker-grid {
        grid-template-columns: 1fr;
    }
    
    .aeco-company-filters {
        flex-direction: column;
    }
    
    .aeco-giant-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* ==========================================================================
   RESET FILTER BUTTON - color matches hero section per page
   ========================================================================== */

.aeco-reset-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    transition: opacity 0.2s, transform 0.1s;
    align-self: flex-end;
    white-space: nowrap;
}

.aeco-reset-btn:hover  { opacity: 0.85; }
.aeco-reset-btn:active { transform: scale(0.97); }

/* Orange - Weekly Briefing */
.aeco-reset-btn.orange { background: #dd6b20; }
/* Purple - Stack Alerts / Guides */
.aeco-reset-btn.purple { background: #805ad5; }
/* Green - Market Pulse */
.aeco-reset-btn.green  { background: #38a169; }
/* Blue - Giant Tracker */
.aeco-reset-btn.blue   { background: #3182ce; }

/* Filters grid gains a last column for the reset button */
.aeco-filters-grid-with-reset {
    display: grid;
    gap: 20px;
    align-items: end;
}

/* ==========================================================================
   VIEW TOGGLE FIX (Grid / List) - active uses black
   ========================================================================== */

.aeco-view-toggle button.active {
    background: #1a202c !important;
    color: white !important;
    border-color: #1a202c !important;
}

/* List layout */
.aeco-tools-grid.list-view {
    grid-template-columns: 1fr !important;
}

.aeco-tools-grid.list-view .aeco-tool-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
}

/* ==========================================================================
   MARKET PULSE - collapsible summary (Task 8)
   ========================================================================== */

.aeco-pulse-summary {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 10px;
}

.aeco-pulse-summary.aeco-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: none;
}

.aeco-pulse-read-more {
    display: inline-block;
    margin: 6px 0 12px;
    padding: 5px 16px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.aeco-pulse-read-more:hover { background: #2f855a; }


/* ==========================================================================
   HOMEPAGE - Pillar Cards & Layout
   ========================================================================== */

/* Pillar card wrapper */
.aeco-hp-pillar {
    background: white;
    border-radius: 12px;
    padding: 28px 28px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.aeco-hp-pillar:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

.aeco-hp-pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}
.aeco-hp-pillar-icon { font-size: 1.8rem; line-height: 1; }
.aeco-hp-pillar-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}

/* Individual post item inside pillar */
.aeco-hp-post-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f4f8;
}
.aeco-hp-post-item:last-of-type { border-bottom: none; }
.aeco-hp-post-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.4;
}
.aeco-hp-post-item h4 a {
    color: #2d3748;
    text-decoration: none;
}
.aeco-hp-post-item h4 a:hover { color: inherit; text-decoration: underline; }
.aeco-hp-excerpt {
    font-size: 0.88rem;
    color: #718096;
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.aeco-hp-meta { font-size: 0.82rem; }

.aeco-hp-empty { color: #a0aec0; font-style: italic; font-size: 0.95rem; padding: 10px 0; }

.aeco-hp-view-all {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 18px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}
.aeco-hp-view-all:hover {
    background: currentColor;
}

/* Pillars 2x2 grid */
.aeco-hp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 768px) {
    .aeco-hp-pillars-grid { grid-template-columns: 1fr; }
}

/* Latest signal strip (3 column feed) */
.aeco-hp-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .aeco-hp-feed-grid { grid-template-columns: 1fr; }
}

/* Homepage hero variant */
.aeco-hero.homepage {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: left;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    padding: 110px 60px 80px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
}
.aeco-hero.homepage .aeco-hp-hero-inner {
    max-width: 700px;
}
.aeco-hero.homepage .aeco-hp-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
/* Task 2: force h1 white */
.aeco-hero.homepage h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 18px;
    color: #ffffff !important;
}
.aeco-hero.homepage .aeco-subtitle {
    font-size: 1.15rem;
    max-width: 580px;
    color: rgba(255,255,255,0.9);
}
.aeco-hero.homepage .aeco-hp-cta-row {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.aeco-hp-cta-primary {
    background: white;
    color: #0f3460;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.aeco-hp-cta-primary:hover { opacity: 0.9; color: #0f3460; }
.aeco-hp-cta-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s;
}
.aeco-hp-cta-secondary:hover { border-color: white; color: white; }

/* HP section labels */
.aeco-hp-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 6px;
}
.aeco-hp-section-sub {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Weekly briefing CTA box on homepage */
.aeco-hp-briefing-box {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    border-radius: 16px;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    margin: 50px 0;
}
@media (max-width: 768px) {
    .aeco-hp-briefing-box { grid-template-columns: 1fr; }
}
.aeco-hp-briefing-box h2 { font-size: 1.8rem; margin-bottom: 10px; }
.aeco-hp-briefing-box p  { opacity: 0.95; font-size: 1.05rem; }
.aeco-hp-briefing-box form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 300px;
}
.aeco-hp-briefing-box input[type="email"] {
    flex: 1;
    padding: 13px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 200px;
}
.aeco-hp-briefing-box button {
    background: #2d3748;
    color: white;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.95rem;
}

