/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    flex: 1;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.nav-dropdown-btn:hover {
    opacity: 0.8;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #333;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-dropdown-content a:hover {
    background-color: #f8fafc;
}

/* Search */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.search-input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 200px;
    padding: 0.25rem;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
}

/* Top News Section */
.top-news-section {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.news-timestamp {
    font-size: 0.875rem;
    color: #64748b;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-category {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin: 0 0 0.5rem 0;
}

.news-link {
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.news-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Ad Banner */
.ad-banner {
    text-align: center;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
}

.ad-image {
    max-width: 100%;
    height: auto;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Tile Grid */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tile {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tile-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tile-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.tile-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tile-count {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Tile Color Schemes */
.payments-news {
    border-color: #dc2626;
}
.payments-news:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.fintech-data {
    border-color: #059669;
}
.fintech-data:hover {
    border-color: #059669;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
}

.economic-indicators {
    border-color: #0891b2;
}
.economic-indicators:hover {
    border-color: #0891b2;
    box-shadow: 0 8px 25px rgba(8, 145, 178, 0.15);
}

.regulatory-updates {
    border-color: #7c3aed;
}
.regulatory-updates:hover {
    border-color: #7c3aed;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

.market-research {
    border-color: #ea580c;
}
.market-research:hover {
    border-color: #ea580c;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.15);
}

.technology-reviews {
    border-color: #be185d;
}
.technology-reviews:hover {
    border-color: #be185d;
    box-shadow: 0 8px 25px rgba(190, 24, 93, 0.15);
}

.industry-reports {
    border-color: #0369a1;
}
.industry-reports:hover {
    border-color: #0369a1;
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.15);
}

.compliance-guides {
    border-color: #16a34a;
}
.compliance-guides:hover {
    border-color: #16a34a;
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.15);
}

.vendor-directory {
    border-color: #ca8a04;
}
.vendor-directory:hover {
    border-color: #ca8a04;
    box-shadow: 0 8px 25px rgba(202, 138, 4, 0.15);
}

.events-webinars {
    border-color: #9333ea;
}
.events-webinars:hover {
    border-color: #9333ea;
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.15);
}

.expert-interviews {
    border-color: #dc2626;
}
.expert-interviews:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.thought-leadership {
    border-color: #0d9488;
}
.thought-leadership:hover {
    border-color: #0d9488;
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.15);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.data-sources-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-sources-table thead {
    background-color: #667eea;
    color: white;
}

.data-sources-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.data-sources-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.data-sources-table tbody tr:hover {
    background-color: #e2e8f0;
}

.data-sources-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.data-sources-table td:first-child {
    font-weight: 500;
    color: #1a202c;
}

.data-sources-table a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.85rem;
}

.data-sources-table a:hover {
    text-decoration: underline;
    color: #764ba2;
}

/* GenAI Section Titles */
.genai-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }
    
    .data-sources-table {
        min-width: 600px;
    }
    
    .data-sources-table th,
    .data-sources-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .genai-section-title {
        font-size: 1.25rem;
    }
}

/* Amazon Section */
.amazon-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.amazon-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.amazon-products {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.amazon-widget {
    flex: 0 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-right {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav {
        justify-content: center;
    }

    .search-container {
        width: 100%;
        max-width: 300px;
    }

    .search-input {
        width: 100%;
    }

    .main-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .subtitle {
        text-align: center;
    }

    .tile-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .nav-dropdown-content {
        position: fixed;
        top: auto;
        right: 1rem;
        left: 1rem;
        width: auto;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }

    .main-content {
        padding: 0 0.5rem;
    }

    .tile {
        padding: 1rem;
    }

    .amazon-section {
        padding: 1rem;
    }
}