/* Help Center Styles */
/* [AI IDE] Date: 2025-04-09 | Time: 14:15 | Action: Change | Purpose: Update CSS to match new generic card and modal structure; */
/* [AI IDE] Date: 2025-04-09 | Time: 15:05 | Action: Change | Purpose: Update card styling to match the provided image; */
/* [AI IDE] Date: 2025-04-09 | Time: 15:35 | Action: Add | Purpose: Add responsive video container and video indicators for embedded videos; */
/* [AI IDE] Date: 2025-04-09 | Time: 16:03 | Action: Change | Purpose: Make video indicator smaller and position card text on top; */
/* [AI IDE] Date: 2025-04-09 | Time: 16:25 | Action: Add | Purpose: Add styling for video badge in card titles; */
/* [AI IDE] Date: 2025-04-09 | Time: 16:32 | Action: Change | Purpose: Add spacing between header and Help Center title; */
/* [AI IDE] Date: 2025-04-11 | Time: 11:55 | Action: Change | Purpose: Update color scheme to Deep Crimson Color Palette; */
/* [AI IDE] Date: 2025-04-11 | Time: 12:20 | Action: Change | Purpose: Enhance gradients and add subtle wave background; */
/* [AI IDE] Date: 2025-04-11 | Time: 13:00 | Action: Change | Purpose: Replace background image with CSS-generated pattern; */
/* [AI IDE] Date: 2025-04-11 | Time: 13:50 | Action: Change | Purpose: Update to match new dark theme and app-like design; */

:root {
    /* Primary Colors */
    --primary-color: #CCFF00; /* Lime Green/Yellow for accents */
    --primary-dark: #AADD00;
    --secondary-color: #333333; /* Dark Charcoal for backgrounds */
    --secondary-light: #555555; /* Medium Gray for secondary backgrounds */
    --tertiary-color: #4D6082; /* Soft Blue as complementary accent */
    
    /* Functional Colors */
    --success-color: #33CC33; /* Success Green */
    --alert-color: #CC3333; /* Alert Red */
    
    /* UI Colors */
    --background-color: #222222; /* Darker background */
    --card-bg: #333333; /* Card background */
    --border-color: #444444; /* Border color */
    
    /* Text Colors */
    --text-primary: #FFFFFF; /* White text */
    --text-secondary: #DDDDDD; /* Light Gray text */
    --text-muted: #999999; /* Muted text */
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background-color);
    background-image: 
        linear-gradient(rgba(51, 51, 51, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 51, 51, 0.7) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Help Center Hero Section */
.help-center-hero {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.9), rgba(77, 96, 130, 0.7));
    padding: var(--spacing-xl) var(--spacing-xl);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin: var(--spacing-lg) auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 1200px;
}

.help-center-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(204, 255, 0, 0.03) 19px, rgba(204, 255, 0, 0.03) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(204, 255, 0, 0.03) 19px, rgba(204, 255, 0, 0.03) 20px);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
}

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

.help-center-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.help-center-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-secondary);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    padding-left: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

/* Help Categories Section */
.help-categories {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.help-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(204, 255, 0, 0.01) 19px, rgba(204, 255, 0, 0.01) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(204, 255, 0, 0.01) 19px, rgba(204, 255, 0, 0.01) 20px);
    background-size: 20px 20px;
    opacity: 0.2;
    z-index: 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.help-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-image-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #111;
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.help-card:hover .play-icon {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
}

.video-badge {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: var(--spacing-sm);
    font-weight: 700;
    text-transform: uppercase;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-dark);
}

.card-link i {
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: var(--spacing-xl);
    border-radius: 8px;
    max-width: 800px;
    position: relative;
    border: 1px solid var(--border-color);
}

.close-modal {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: var(--spacing-xs);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.modal-video {
    margin-bottom: var(--spacing-lg);
}

.modal-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-text p {
    margin-bottom: var(--spacing-md);
}

.modal-text h3 {
    color: var(--primary-color);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
    font-size: 1.25rem;
}

.modal-text ul, .modal-text ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.modal-text li {
    margin-bottom: var(--spacing-xs);
}

.modal-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-tags {
    display: flex;
    gap: var(--spacing-xs);
}

.modal-tag {
    background-color: rgba(204, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.modal-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.modal-button.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.modal-button.primary:hover {
    background-color: var(--primary-dark);
}

/* Digital Display Styles */
.digital-display {
    font-family: 'Roboto Mono', monospace;
    background-color: #111111;
    color: var(--primary-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 4px;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #444444;
    margin: var(--spacing-md) 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .help-center-title {
        font-size: 2rem;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% var(--spacing-md);
        padding: var(--spacing-lg);
    }
    
    .modal-footer {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
}
