
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    overflow-x: auto;
}

/* Security Warning Bar */
.security-bar {
    background: #ff4444;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    cursor: pointer;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Core Web Vitals Dashboard */
.vitals-panel {
    position: fixed;
    top: 50px;
    right: 20px;
    background: white;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 15px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.score-container {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score-label {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.clickable-score {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.clickable-score:hover {
    transform: scale(1.1);
}

.score {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    background: #4CAF50;
    transition: all 0.3s ease;
}

.score.bad {
    background: #f44336;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes flash {
    0%, 100% { background-color: transparent; }
    50% { background-color: #ffeb3b; }
}

.vitals-warning {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/* Loading Bar */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 998;
}

.loading-text {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.loading-progress {
    width: 300px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.5s ease;
}

.loading-spinner {
    font-size: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Main Content */
#main-content {
    margin-top: 80px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none !important;
}

/* Clickable sections */
.clickable-section {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-section:hover {
    transform: scale(1.02);
}

.clickable-section h3 {
    color: #2196f3;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-decoration: underline;
}

/* Headings and Keyword Cannibalization */
h1 {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.cannibalization-section {
    margin: 40px 0;
    padding: 20px;
    border: 2px dashed #ff9800;
    background: #fff3e0;
    position: relative;
    cursor: pointer;
}

.cannibalization-section h2 {
    color: #e65100;
    margin: 10px 0;
    font-size: 1.8em;
}

/* CLS Section */
.shift-section {
    margin: 40px 0;
    padding: 20px;
    position: relative;
}

.cta-button {
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #45a049;
}

.trigger-button {
    background: #ff6b6b;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin: 15px 10px 15px 0;
    transition: all 0.3s ease;
    font-weight: bold;
}

.trigger-button:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.surprise-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #ff6b6b;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 10;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Mobile Issues */
.mobile-section {
    margin: 40px 0;
    position: relative;
    cursor: pointer;
}

.wide-content {
    width: 1500px; /* Intentionally too wide */
    background: #e3f2fd;
    padding: 20px;
    border: 2px solid #2196f3;
}

.wide-content h2 {
    color: #1976d2;
    white-space: nowrap;
    overflow: hidden;
}

.oversized-image {
    width: 800px;
    height: 200px;
    margin: 20px 0;
}

/* Spammy Links */
.spammy-links {
    margin: 40px 0;
    padding: 20px;
    background: #ffe0e0;
    border: 2px solid #f44336;
    position: relative;
    cursor: pointer;
}

.spammy-link {
    display: block;
    color: #d32f2f;
    text-decoration: none;
    margin: 10px 0;
    font-weight: bold;
    padding: 10px;
    background: #ffebee;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.spammy-link:hover {
    background: #ffcdd2;
    transform: scale(1.05);
}

/* Broken Links Section */
.broken-section {
    margin: 40px 0;
    padding: 20px;
    position: relative;
}

.blog-link {
    color: #2196f3;
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
    display: inline-block;
}

.error-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #f5f5f5;
    border: 2px solid #ff5722;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
}

/* Tooltips */
.tooltip {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    white-space: nowrap;
    z-index: 100;
    font-size: 14px;
    max-width: 300px;
    white-space: normal;
    text-align: center;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

.score-tooltip {
    position: fixed;
    bottom: auto;
    top: 180px;
    left: 20px;
    right: 20px;
    transform: none;
    max-width: 280px;
    z-index: 1003;
    font-size: 13px;
    line-height: 1.4;
}

/* Escape Button */
.escape-section {
    text-align: center;
    margin: 60px 0;
}

.escape-btn {
    background: #f44336;
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    animation: pulse 2s infinite;
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.modal-content p {
    margin: 15px 0;
    line-height: 1.6;
}

.audit-form {
    margin: 20px 0;
}

.url-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

.audit-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.disclaimer {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .vitals-panel {
        position: static;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .score-container {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .score-item {
        min-width: 70px;
    }
    
    .score-tooltip {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    #main-content {
        margin-top: 50px;
        padding: 10px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    /* Make the mobile issues even more obvious on mobile */
    .wide-content {
        width: 2000px; /* Even wider on mobile */
    }
    
    .tooltip {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 10px;
        white-space: normal;
        max-width: 100%;
    }
}
