/* Import the dual-view styles */
@import url('dual-view.css');

/* Your existing styles can go here or you can merge with your current styles.css */

/* Base styles for the application */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Main container styles */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Stats bar styles */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.total { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.stat-icon.media { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.stat-icon.ai { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon.google { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.stat-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Tools grid base styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Executive grid specific */
.executive-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Technical grid specific */
.technical-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Scrollable container for many tools */
.tools-section {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding: 1rem;
}

/* Custom scrollbar */
.tools-section::-webkit-scrollbar {
    width: 8px;
}

.tools-section::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.tools-section::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.tools-section::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

/* Quick stats styles */
.quick-stats {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.risk-low { color: var(--success); }
.risk-medium { color: var(--warning); }
.risk-high { color: var(--danger); }

/* Executive summary styles */
.executive-summary {
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Tech specs styles */
.tech-specs {
    margin: 1rem 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.spec-item i {
    color: var(--primary);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}