/**
 * Stock of the Month (SOM) Styles
 */

/* SOM Index Page */
.som-index-main {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.som-index-container {
    width: 100%;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
}

/* SOM Cards Grid */
.som-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.som-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.som-card:hover {
    transform: translateY(-4px);
    border-color: #029D6E;
    box-shadow: 0 8px 24px rgba(2, 157, 110, 0.2);
}

.som-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.som-card-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: #029D6E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.som-card-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.som-card-badge.buy-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.som-card-badge.sell-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.som-card-badge.hold-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.som-card-badge.strategies-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.som-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.som-card-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.som-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.som-card-description {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

.som-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.som-card-date {
    font-size: 0.85rem;
    color: #64748b;
}

.som-card-arrow {
    font-size: 1.2rem;
    color: #029D6E;
    transition: transform 0.3s ease;
}

.som-card:hover .som-card-arrow {
    transform: translateX(4px);
}

/* SOM Article Page */
.som-main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.som-container {
    width: 100%;
}

/* Recommendation Banner */
.recommendation-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
}

.recommendation-banner.buy {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, #1e293b 100%);
}

.recommendation-banner.sell {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, #1e293b 100%);
}

.recommendation-banner.hold {
    border-color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, #1e293b 100%);
}

.recommendation-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.recommendation-main {
    flex: 1;
    min-width: 300px;
}

.recommendation-main h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.recommendation-main h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.recommendation-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.recommendation-badges .badge {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-badges .buy-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.recommendation-badges .hold-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.recommendation-badges .target-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.recommendation-meta {
    text-align: right;
    min-width: 200px;
}

.recommendation-meta .date {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.recommendation-meta .current-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
}

.recommendation-meta .current-price.error {
    color: #ef4444;
    font-size: 0.9rem;
}

/* Article Content */
.som-article {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 40px;
    line-height: 1.8;
    color: #cbd5e1;
}

.som-article .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 24px;
    line-height: 1.8;
}

.som-article .content-section {
    margin-bottom: 40px;
}

.som-article .content-section:last-child {
    margin-bottom: 0;
}

.som-article h2 {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(2, 157, 110, 0.3);
}

.som-article h3 {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-top: 32px;
    margin-bottom: 16px;
}

.som-article p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.som-article ul,
.som-article ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.som-article li {
    margin-bottom: 8px;
}

.som-article blockquote {
    border-left: 4px solid #029D6E;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #94a3b8;
}

/* Framework Section */
.framework-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 60px 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.framework-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #029D6E 0%, #10b981 50%, #029D6E 100%);
}

.framework-content {
    position: relative;
    z-index: 1;
}

.framework-header {
    text-align: center;
    margin-bottom: 48px;
}

.framework-content h2 {
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #e2e8f0 0%, #029D6E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.framework-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.rule-card {
    position: relative;
    height: 100%;
}

.rule-card-inner {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border: 2px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 32px 28px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #029D6E 0%, #10b981 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.rule-card:hover .rule-card-inner {
    transform: translateY(-4px);
    border-color: rgba(2, 157, 110, 0.4);
    box-shadow: 0 12px 32px rgba(2, 157, 110, 0.15);
}

.rule-card:hover .rule-card-inner::before {
    transform: scaleX(1);
}

.rule-number {
    position: absolute;
    top: -20px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #029D6E 0%, #027a56 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 4px solid #0f172a;
    box-shadow: 0 4px 12px rgba(2, 157, 110, 0.3);
    z-index: 2;
}

.rule-icon {
    font-size: 3rem;
    text-align: center;
    margin: 24px 0 16px 0;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(2, 157, 110, 0.2));
}

.rule-card h4 {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.rule-card p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .som-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendation-content {
        flex-direction: column;
    }
    
    .recommendation-meta {
        text-align: left;
        width: 100%;
    }
    
    .som-article {
        padding: 24px;
    }
    
    .som-article h2 {
        font-size: 1.5rem;
    }
    
    .som-article h3 {
        font-size: 1.2rem;
    }
    
    .framework-section {
        padding: 40px 24px;
    }
    
    .framework-content h2 {
        font-size: 1.8rem;
    }
    
    .framework-subtitle {
        font-size: 1rem;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .rule-card-inner {
        padding: 28px 20px;
    }
    
    .rule-number {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        top: -16px;
        left: 20px;
    }
    
    .rule-icon {
        font-size: 2.5rem;
        margin: 20px 0 12px 0;
    }
    
    .rule-card h4 {
        font-size: 1.2rem;
    }
}
