/*
 * ShelfWatch UK - Production CSS
 * Pure CSS with no JavaScript dependencies
 * Mobile-first responsive design optimized for corporate accountability campaigns
 * WCAG AA compliant with 4.5:1 contrast ratios and keyboard navigation support
 */

/* Accessibility: Skip-to-content link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* CSS Reset for consistent cross-browser rendering */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animation keyframes for enhanced UX without JavaScript */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Base typography using system fonts for performance and compatibility */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50; /* WCAG AA compliant text color */
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    min-height: 100vh;
    animation: fadeIn 0.5s ease-out;
}

/* Content container with optimal line length (75ch) for readability */
.container {
    max-width: 75ch;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 0.75em;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #cc0000, #990000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: #cc0000;
    border-bottom: 3px solid #cc0000;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: #333;
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #555;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.25rem;
}

a {
    color: #0066cc;
    text-decoration: underline;
}

a:hover {
    color: #004499;
}

a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Corporate Banner */
.corporate-banner {
    background: linear-gradient(90deg, #cc0000 0%, #990000 50%, #cc0000 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(204, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.corporate-banner p {
    margin: 0;
    font-size: 1.05rem;
}

.corporate-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
    transition: all 0.3s ease;
}

.corporate-banner a:hover {
    color: #ffeb3b;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(204, 0, 0, 0.1);
    padding: 1.25rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 52px;
    z-index: 90;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #cc0000, #ff0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-brand a {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(204, 0, 0, 0.05);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

/* Hero section */
.hero {
    background: radial-gradient(ellipse at top, rgba(204, 0, 0, 0.05), transparent),
                linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 3px solid #cc0000;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(204, 0, 0, 0.02) 10px,
        rgba(204, 0, 0, 0.02) 20px
    );
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #cc0000, #990000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
}

.hero-deck {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #555;
    margin-bottom: 2rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

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

.hero-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px solid #cc0000;
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 0.4s backwards;
}

.hero-images img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.3);
}

/* Deadline Counter */
.deadline-counter {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: #fff;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
}

.deadline-counter::before {
    content: '⚠️';
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.2;
}

.deadline-counter::after {
    content: '⚠️';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.2;
}

.deadline-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.deadline-date {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.deadline-days {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Buttons: Mobile-optimized with 44px+ tap targets for accessibility */
.btn {
    display: inline-block;
    padding: 1rem 2rem; /* Ensures 48px+ height for mobile tap targets */
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #333, #666);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btn:hover::before {
    opacity: 1;
}

.btn:focus {
    outline: 3px solid #0066cc;
    outline-offset: 3px;
}

.btn--primary {
    background: linear-gradient(135deg, #cc0000, #990000);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.btn--primary::before {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.btn--primary:hover {
    animation: none;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.5);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--alert {
    background-color: #cc0000;
    color: #fff;
}

/* Content grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.main-content {
    min-width: 0;
}

/* Page headers */
.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 60ch;
    margin: 0 auto;
}

/* Incident cards */
.incident-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.incident-card:hover {
    box-shadow: 0 15px 40px rgba(204,0,0,0.15);
    transform: translateY(-5px);
    border-color: #cc0000;
}

.incident-card--detailed {
    padding: 2.5rem;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.incident-header h2,
.incident-header h3 {
    margin: 0;
}

.incident-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #666;
}

.incident-meta time {
    font-weight: 500;
}

.incident-summary {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.incident-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.incident-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #cc0000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.incident-images img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(204,0,0,0.2);
}

.incident-images figure {
    margin: 0;
}

.incident-images figcaption {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.incident-sources {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.incident-sources ul {
    margin-top: 0.5rem;
}

.incident-details {
    margin: 1.5rem 0;
}

.incident-details h3 {
    color: #cc0000;
    font-size: 1.125rem;
}

/* Sidebar */
.sidebar {
    min-width: 0;
}

.sidebar-box {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #cc0000;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(204,0,0,0.1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.sidebar-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff0000, #cc0000);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.sidebar-box h3 {
    color: #cc0000;
    margin-bottom: 1rem;
}

/* Action boxes */
.action-box {
    background-color: #fff5f5;
    border: 2px solid #ffcccc;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.action-box h2,
.action-box h3 {
    color: #cc0000;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* Pattern analysis */
.pattern-evidence {
    margin: 2rem 0;
}

.evidence-item {
    background-color: #f8f9fa;
    border-left: 4px solid #cc0000;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.evidence-item h3 {
    color: #cc0000;
    margin-bottom: 1rem;
}

.evidence-conclusion {
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 1rem;
}

/* Context and leadership sections */
.context-source,
.leadership-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.leadership-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1.5rem;
}

.leadership-card h4 {
    color: #cc0000;
    margin-bottom: 0.5rem;
}

/* Legal analysis */
.legal-analysis {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.legal-analysis h3 {
    color: #cc0000;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-analysis h3:first-child {
    margin-top: 0;
}

/* New sections styling */
.demands-box {
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, #cc0000, #ff0000) 1;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(204, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.demands-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #cc0000, #ff0000, #cc0000);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.demands-box ol {
    font-size: 1.125rem;
    line-height: 1.6;
}

.demands-box li {
    margin-bottom: 1rem;
}

.demand-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 2px solid #ffc107;
}

.status-icon {
    font-size: 2rem;
}

.status-text {
    font-weight: bold;
    color: #cc0000;
    font-size: 1.125rem;
}

.demand-footer {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.demand-footer p {
    margin: 0.5rem 0;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #cc0000;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 12px;
    padding: 2rem;
    margin-left: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(204,0,0,0.15);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cc0000;
    border: 3px solid #fff;
}

.timeline-item--current {
    border: 3px solid #cc0000;
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
    box-shadow: 0 10px 30px rgba(204,0,0,0.2);
    animation: pulse 2s ease-in-out infinite, slideInLeft 0.6s ease-out;
}

.timeline-item--current::before {
    background-color: #fff;
    border: 3px solid #cc0000;
}

.timeline-date {
    font-weight: bold;
    color: #cc0000;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.why-1948-box {
    background: linear-gradient(135deg, #fff3cd, #ffe4b5);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-image: linear-gradient(135deg, #ffc107, #ff9800) 1;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.why-1948-box::after {
    content: '⚠️';
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2rem;
    background: linear-gradient(135deg, #fff3cd, #fff);
    padding: 0 10px;
}

.why-1948-box h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.review-mobilization {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.review-mobilization::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.review-mobilization h2 {
    color: #cc0000;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.review-options {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.review-option {
    background: linear-gradient(135deg, #fff, #fafafa);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.review-option::before {
    content: '✍️';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.2;
}

.review-option:hover {
    border-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(204,0,0,0.15);
}

.review-option h4 {
    color: #cc0000;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-text {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border: 2px solid #cc0000;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    margin: 1rem 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.copy-text:focus {
    outline: none;
    border-color: #ff0000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(204,0,0,0.2), inset 0 2px 5px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.review-copy small {
    color: #666;
    font-weight: 500;
}

.review-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.media-references {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.media-references h2 {
    color: #cc0000;
    margin-bottom: 1rem;
}

.media-references ul {
    list-style-type: none;
    padding-left: 0;
}

.media-references li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.media-references li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #cc0000;
    font-weight: bold;
}

/* Share Section */
.share-section {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.share-section h2 {
    color: #cc0000;
    margin-bottom: 1rem;
}

/* Social Media Amplification Tools */
.incident-amplification {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 2px solid #cc0000;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

.incident-amplification h3 {
    color: #cc0000;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.amplification-tools {
    margin-top: 1rem;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 44px; /* Mobile tap target */
}

.btn-twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
    color: white;
}

.btn-twitter:hover {
    background: linear-gradient(135deg, #0d8bd9, #0a7bc4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.3);
}

.btn-facebook {
    background: linear-gradient(135deg, #4267b2, #365899);
    color: white;
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #365899, #2d4373);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.3);
}

.btn-linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: white;
}

.btn-linkedin:hover {
    background: linear-gradient(135deg, #005885, #004471);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

.btn-email {
    background: linear-gradient(135deg, #666, #555);
    color: white;
}

.btn-email:hover {
    background: linear-gradient(135deg, #555, #444);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 102, 0.3);
}

.social-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hashtag-bank {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
}

.hashtag-bank h4 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hashtag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #cc0000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cc0000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hashtag:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
    transform: scale(1.05);
}

/* Pattern amplification styling */
.pattern-amplification {
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    animation: fadeIn 0.6s ease-out;
}

.pattern-amplification h2 {
    color: #28a745;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

/* Legacy share buttons for homepage */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.emphasis {
    font-weight: bold;
    color: #cc0000;
    text-align: center;
    margin-top: 1rem;
}

/* Incident Statistics */
.incident-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #cc0000;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #cc0000;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.response-timeline {
    margin: 1rem 0;
}

.response-item {
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #dee2e6;
    background-color: #f8f9fa;
}

.response-item.pending {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.response-item.escalation {
    border-left-color: #cc0000;
    background-color: #fff5f5;
    font-weight: 500;
}

.corporate-response-log {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.corporate-response-log h3 {
    color: #cc0000;
    margin-bottom: 1rem;
}

/* Footer */
.footer-action {
    background-color: #cc0000;
    color: #fff;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.footer-action a {
    color: #fff;
    text-decoration: underline;
}

.footer-action a:hover {
    color: #ffcccc;
}

footer {
    background: linear-gradient(135deg, #333, #1a1a1a);
    color: #fff;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #cc0000, #ff0000, #cc0000);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-legal {
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-legal p {
    margin-bottom: 1rem;
}

.footer-legal a {
    color: #fff;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-credit {
    text-align: center;
    font-size: 0.875rem;
    color: #ccc;
    border-top: 1px solid #555;
    padding-top: 1rem;
    margin: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-deck {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .incident-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .incident-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .incident-images {
        grid-template-columns: 1fr;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .incident-card,
    .incident-card--detailed {
        padding: 1.5rem;
    }
    
    .sidebar-box,
    .action-box {
        padding: 1.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .incident-card {
        border-width: 2px;
    }
    
    .badge--alert {
        border: 2px solid #fff;
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Focus management */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
