/* SEO Tools Specific Styles */
body {
    background-color: #f8f9fa;
}

.tool-hero {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: white;
}

.tool-hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

.tool-hero-light {
    background: #ffffff;
    padding: 5rem 0 3rem;
    border-bottom: 1px solid #eaeaea;
    color: #111827;
}

.tool-hero-light h1 {
    font-weight: 800;
    letter-spacing: -1px;
    color: #111827;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 auto;
    position: relative;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 10px solid #eee;
}

.score-circle.score-excellent {
    border-color: #10b981;
    color: #10b981;
}

.score-circle.score-good {
    border-color: #f59e0b;
    color: #f59e0b;
}

.score-circle.score-poor {
    border-color: #ef4444;
    color: #ef4444;
}

/* Premium tool cards */
.seo-tool-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    padding: 30px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.seo-tool-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-5px);
}

.seo-tool-card .icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: #f3f4f6;
    color: #4b5563;
}

.seo-tool-card.active-tool .icon-wrapper {
    background: #e0e7ff;
    color: #4f46e5;
}

.seo-tool-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.seo-tool-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.seo-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-good {
    background: #d1fae5;
    color: #065f46;
}

.status-warn {
    background: #fef3c7;
    color: #92400e;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
}

.google-preview {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

.google-preview .url {
    color: #202124;
    font-size: 14px;
    margin-bottom: 2px;
    word-break: break-all;
}

.google-preview .title {
    color: #1a0dab;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 3px;
    text-decoration: none;
}

.google-preview .desc {
    color: #4d5156;
    font-size: 14px;
    line-height: 1.58;
}

.social-preview {
    border: 1px solid #dadde1;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f3f5;
}

.social-preview img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-bottom: 1px solid #dadde1;
    background: #e9ebee;
}

.social-preview-body {
    padding: 10px 12px;
}

.social-preview-domain {
    text-transform: uppercase;
    font-size: 12px;
    color: #606770;
    margin-bottom: 5px;
}

.social-preview-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 3px;
}

.social-preview-desc {
    font-size: 14px;
    color: #606770;
}

.table-seo th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-seo td, .table-seo th {
    padding: 1.25rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid #f3f4f6;
}

.table-seo tr:last-child td {
    border-bottom: none;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.form-wrapper {
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
}

.form-wrapper .input-group {
    background: #fff;
}

.form-wrapper input {
    font-size: 1.1rem;
}

/* Feature Check Marks */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: #4b5563;
}

.feature-list li::before {
    content: '\F26E'; /* Bootstrap icon check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-size: 1.2rem;
}

.img-demo-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Fix navbar text visibility on light pages */
.bg-light .navbar .nav-link {
    color: #111827 !important;
}

.bg-light .navbar .nav-link:hover {
    color: #4f46e5 !important;
}

.bg-light .navbar .navbar-toggler-icon,
.bg-light .navbar .nav-toggler-icon {
    color: #111827 !important;
}

/* Ensure the blue/gold logo is shown on light backgrounds */
.bg-light .navbar .logo-light {
    display: none !important;
}

.bg-light .navbar .logo-dark {
    display: inline-block !important;
}

/* Hover & Code Boxes */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04) !important;
}
.code-box {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    white-space: pre;
    border: 1px solid #374151;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.06);
}

/* Dashboard Styles */
.dashboard-card {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Circular Progress Bar */
.progress-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}
.progress-circle::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: #fff;
    border-radius: 50%;
    z-index: 1;
}
.progress-value {
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 800;
    color: #0d6efd;
}

/* Length Progress Bars */
.length-bar-container {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}
.length-bar {
    height: 100%;
    border-radius: 3px;
}

/* Loading Overlay */
#loading-overlay {
    display: none;
    padding: 60px 0;
    text-align: center;
}
.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #6f42c1;
}
