/*
 * TacticalHQ Home Page Styles
 * Extracted from production index.html
 */

/* Content Area */
.content-area {
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 60px);
}

/* Hero Section - Full width without rounded corners */
.hero-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.95) 100%),
                url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1920&q=80') center/cover no-repeat;
    border-radius: 0;
    padding: 48px;
    color: white;
    margin: -32px -32px 32px -32px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero-greeting {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Quick Actions Grid */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.action-card {
    background: white;
    border-radius: 0;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #667eea), var(--card-color-end, #764ba2));
    opacity: 1;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.action-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: transparent;
    color: var(--card-color, #667eea);
}

.action-card-icon svg {
    stroke: var(--card-color, #667eea);
}

.action-card[data-color="blue"] { --card-color: #3b82f6; --card-color-end: #1d4ed8; }
.action-card[data-color="green"] { --card-color: #10b981; --card-color-end: #059669; }
.action-card[data-color="purple"] { --card-color: #8b5cf6; --card-color-end: #6d28d9; }
.action-card[data-color="orange"] { --card-color: #f59e0b; --card-color-end: #d97706; }
.action-card[data-color="pink"] { --card-color: #ec4899; --card-color-end: #db2777; }
.action-card[data-color="cyan"] { --card-color: #06b6d4; --card-color-end: #0891b2; }

.action-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.action-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    flex: 1;
}

.action-card-arrow {
    margin-top: 16px;
    color: #94a3b8;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.action-card:hover .action-card-arrow {
    transform: translateX(6px);
    color: var(--card-color, #667eea);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-card {
    background: white;
    border-radius: 0;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f1f5f9;
}

.feature-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    font-size: 0.9rem;
    color: #64748b;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.feature-card li:last-child {
    border-bottom: none;
}

.feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 0.85rem;
}

/* News Section */
.news-section {
    background: white;
    border-radius: 0;
    padding: 28px;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.news-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.news-title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.btn-refresh {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.news-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    border: 4px solid #f1f5f9 !important;
    border-top: 4px solid #6366f1 !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px !important;
    background: transparent !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.news-article {
    background: #f8fafc;
    padding: 0;
    border-radius: 0;
    border-left: 4px solid #6366f1;
    transition: all 0.3s;
    display: flex;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.news-article-image {
    width: 180px;
    min-width: 180px;
    height: 140px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-article-content {
    padding: 20px;
    flex: 1;
}

.news-summary-box {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    padding: 20px;
    border-radius: 0;
    margin-bottom: 20px;
    border-left: 4px solid #6366f1;
}

.news-summary-box h4 {
    color: #3730a3;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

.news-summary-box p {
    color: #4338ca;
    line-height: 1.6;
    margin: 0;
}

.news-trends {
    margin-bottom: 20px;
}

.news-trends h4 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 700;
}

.news-trends-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-trend-tag {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .content-area {
        padding: 20px;
    }
}
