* { box-sizing: border-box; }
body { 
    background-image: radial-gradient(ellipse at top left, #6699FF, #6666CC, #00CCFF); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 20px;
    min-height: 100vh;
}
.container { max-width: 1000px; margin: 0 auto; }
.report-card {
  background: #fff;
  border: 4px solid #CC9933;
  border-radius: 0.7rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
  background: linear-gradient(135deg, #3E4560, #2A1886, #0C401C, #3E4560);
}
h2 { font-size: 1.4rem; } 
.report-header {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  text-align: center;
  color: white;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.report-header h1 { margin: 0; font-size: 1.8rem; }
.report-header p { margin: 0.5rem 0 0 0; font-size: 1rem; color: #666; }
.grading-legend {margin-top:30px; padding:20px; 
  background: linear-gradient(135deg, #3E4560, #2A1886, #0C401C, #3E4560);
  border: 4px solid #CC9933; color: white; border-radius: 0.7rem; 
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.grade-container {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.professor-certification {
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #3E4560, #2A1886, #0C401C, #3E4560);
    border-radius: 0.7rem;
    border: 4px solid #CC9933; }
.grade {
  display: inline-block;
  background: linear-gradient(135deg, #ffd54f 0%, #ffeb3b 100%);
  color: #333;
  border: 3px solid #ffa000;
  border-radius: 50%;
  font-size: 3rem;
  font-weight: bold;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 16px rgba(255, 160, 0, 0.3);
}
.score-text { font-size: 1.2rem; color: #666; margin-top: 1rem; font-weight: bold; }
form { text-align: center; margin-bottom: 2rem; padding: 1.5rem; background: #f8f9fa; border-radius: 0.8rem; }
input[type=url] { width: 70%; padding: 0.8rem; border-radius: 0.5rem; border: 2px solid #ddd; font-size: 1rem; }
input[type=url]:focus { outline: none; border-color: #667eea; }
button { 
    padding: 0.8rem 1.5rem; border: none; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border-radius: 0.5rem; cursor: pointer;
    font-size: 1rem; font-weight: bold; transition: transform 0.2s;
}
button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); }
.section { margin: 2rem 0; padding: 1.5rem; background: #f8f9fa; border-radius: 0.8rem; border-left: 4px solid #667eea; }
.section h3 { margin: 0 0 1rem 0; color: #333; font-size: 1.3rem; }
.check-item {
    display: flex;
    align-items: flex-start;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.check-icon { flex-shrink: 0; width: 24px; text-align: center; margin-right: 12px; font-size: 1.2rem; }
.check-item.good { border-left: 4px solid #4caf50; }
.check-item.good .check-icon { color: #4caf50; }
.check-item.warn { border-left: 4px solid #ff9800; }
.check-item.warn .check-icon { color: #ff9800; }
.check-item.bad { border-left: 4px solid #f44336; }
.check-item.bad .check-icon { color: #f44336; }
.check-item.neutral { border-left: 4px solid #9e9e9e; }
.check-item.neutral .check-icon { color: #9e9e9e; }
.check-content { flex: 1; font-size: 0.95rem; line-height: 1.5; }
.url-display {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 0.5rem;
    word-break: break-all;
}
.url-display a { color: #1976d2; text-decoration: none; font-weight: bold; }
.url-display a:hover { text-decoration: underline; }
.footer-note { 
    text-align: center; 
    font-family: 'Patrick Hand', cursive; 
    margin-top: 2rem; 
    padding: 1rem;
    color: #856404;
    font-size: 1.1rem;
    background-color: #fff3cd;
    border-radius: 0.5rem;
}
.image-details { 
    margin-top: 0.8rem; 
    padding: 0.8rem; 
    background: #f9f9f9; 
    border-radius: 0.5rem;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
}
.image-item {
    padding: 0.4rem;
    margin: 0.3rem 0;
    border-left: 2px solid #ddd;
    padding-left: 0.6rem;
}
.image-item.no-alt {
    border-left-color: #ff9800;
    background: #fff3e0;
}
.llms-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 0.3rem;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 100px;
    overflow-y: auto;
}
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border-left: 4px solid #f44336;
}
.raw-data-toggle { text-align: center; margin: 2rem 0; }
#rawData {
    background: #263238;
    color: #aed581;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    max-height: 500px;
}
@media (max-width: 768px) {
    input[type=url] { width: 100%; margin-bottom: 0.5rem; }
    .report-header h1 { font-size: 1.4rem; }
    .grade { font-size: 2rem; padding: 1rem 1.5rem; }
    
    /* Badge moves to center on mobile */
    .url-display {
        padding-bottom: 60px;
    }
    .url-display img {
        position: static !important;
        display: block;
        margin: 1rem auto 0 auto;
        width: 100px !important;
    }
}
p { text-align: center; }
blockquote { display: block; border-left: 5px solid #ffc107; background-color: #fff3cd; color: #856404; padding: 1rem; margin: 1rem 0; }
a { text-decoration: none; display: block; }
ul.breadcrumb { font-size: 0.7em; margin: 0px; display: flex; gap: 5px; white-space: nowrap; padding: 2px; }
ul.breadcrumb a { color: white; text-decoration: none; }
ul.breadcrumb a:hover { color: yellow; text-decoration: underline; }
.security-header-item { padding: 0.5rem; margin: 0.3rem 0; background: #fff; border-radius: 0.3rem; font-size: 0.9rem; }
.security-header-item code {
    background: #f5f5f5; padding: 0.2rem 0.4rem; border-radius: 0.2rem;
    font-family: 'Courier New', monospace; font-size: 0.85rem; color: #333;
    display: block; margin-top: 0.3rem; overflow-x: auto;
}
        .share-container {
            max-width: 600px;
            margin: 18px auto;
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .share-title {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }
        .share-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            margin-top: 20px;
        }
        .share-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: white;
        }
        .share-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        .share-btn:active {
            transform: translateY(0);
        }
        .btn-twitter {
            background: #1DA1F2;
        }
        .btn-facebook {
            background: #4267B2;
        }
        .btn-linkedin {
            background: #0077B5;
        }
        .btn-email {
            background: #EA4335;
        }
        .btn-copy {
            background: #6c757d;
        }
        .icon {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
        .copy-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: #28a745;
            color: white;
            padding: 12px 20px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        .copy-notification.show {
            opacity: 1;
        }
        .demo-grade {
            text-align: center;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        .grade-display {
            font-size: 48px;
            font-weight: bold;
            color: #28a745;
            margin: 10px 0;
        }
#backToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 50px;
  z-index: 99;
  font-size: 22px;
  background-color: #333;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #555;
  transform: scale(1.1);
}
.btn { display: block; font-size: 1.0em; background: blue; color: white; width: 220px; margin: 8px auto; padding: 12px; border-radius: 10px; text-align: center;}
.btn:hover, .btn2:hover { background: green; color: white; }
.cta-seo { display: block; font-size: 0.9em; background: #F76503; width: 220px; color: white; border: none; 
cursor: pointer; padding: 6px 8px; margin: 8px auto; border-radius: 10px; text-align: center; }
.cta-seo:hover, .fix:hover { background-color: #0E5077; color: #FFFF00; transform: scale(1.1); box-shadow: 5px 5px 10px 3px rgba(0, 0, 0, 0.5); }
a { cursor: pointer; text-decoration: none; display: block; }
a:hover { color: lightblue; }
.professor { display: flex; z-index: 9; }
.fix { background: #C3F9D6; color: white; border-radius: 10px; }
i.fa-wrench, i.fa-pencil-square-o, i.fa-info { padding-right: 5px; }