@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/outfit-300.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/outfit-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/outfit-500.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/outfit-600.ttf') format('truetype');
}

@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/outfit-700.ttf') format('truetype');
}

:root {
    --bg-dark: #05050a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-accent: #8b5cf6;
    --secondary-accent: #3b82f6;
    --success: #10b981;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-family: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

.background-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(5, 5, 10, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Header */
.app-header {
    text-align: center;
    margin-top: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.logo-x {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Input Section */
.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
}

.input-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.help-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-btn:hover {
    color: var(--primary-accent);
    background: rgba(139, 92, 246, 0.1);
}

.help-btn i {
    width: 20px;
    height: 20px;
}

.input-wrapper:focus-within {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    z-index: 1001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

.close-btn i {
    width: 24px;
    height: 24px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.help-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    border-left: 3px solid var(--primary-accent);
}

.help-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
}

.help-section h3 i {
    width: 18px;
    height: 18px;
    color: var(--primary-accent);
}

.help-section p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tip Modal */
.tip-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    width: 100%;
}

.tip-message {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.tip-message strong {
    color: var(--primary-accent);
    font-weight: 600;
}

.btn-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    color: white;
    text-decoration: none;
    padding: 1.1rem 2.5rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    margin-top: 0.5rem;
    width: auto;
}

.btn-tip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn-tip i {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 1rem 2rem;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.btn-secondary:hover {
    color: rgba(255, 255, 255, 0.7);
}


textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-family);
    resize: none;
    outline: none;
    line-height: 1.4;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

#charCount {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Sponsor Box */
.sponsor-box {
    position: relative;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(59, 130, 246, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Gradient border effect */
.sponsor-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.4),
            rgba(59, 130, 246, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Subtle glow effect */
.sponsor-box::after {
    content: '';
    position: absolute;
    inset: -100%;
    background: radial-gradient(circle at center,
            rgba(139, 92, 246, 0.15) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.sponsor-box:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(59, 130, 246, 0.12) 100%);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.25),
        0 0 80px rgba(139, 92, 246, 0.1);
}

.sponsor-box:hover::before {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.6),
            rgba(59, 130, 246, 0.6));
}

.sponsor-box:hover::after {
    opacity: 1;
}

.sponsor-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.sponsor-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.sponsor-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sponsor-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: center;
    line-height: 1.3;
}

.sponsor-link:hover {
    gap: 1rem;
    transform: scale(1.02);
}

.sponsor-name {
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sponsor-icon {
    width: 22px;
    height: 22px;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.sponsor-link:hover .sponsor-icon {
    opacity: 1;
    transform: translateX(2px);
}

.sponsor-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sponsor-box {
        padding: 1.5rem 1.75rem;
    }

    .sponsor-link {
        font-size: 1.25rem;
    }

    .sponsor-description {
        font-size: 0.95rem;
    }
}

/* Footer Section */
.footer-section {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.6;
    opacity: 0.4;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: underline;
    font-weight: 400;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--text-main);
    opacity: 1;
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.results-section.hidden {
    display: none;
    opacity: 0;
}

.score-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: var(--primary-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.percentage {
    fill: #fff;
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 0.6rem;
    text-anchor: middle;
}

.score-label {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.verdict h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verdict p {
    color: var(--text-muted);
    line-height: 1.5;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 120px;
    justify-content: space-between;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-icon {
    width: 18px;
    height: 18px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-accent), var(--primary-accent));
    border-radius: 3px;
    transition: width 1s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section:not(.hidden) .glass-panel {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.ad-section {
    margin-top: 2rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.6s ease forwards;
}

.ad-container {
    display: flex;
    flex-direction: column;
}

.ad-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ad-section:hover .ad-image {
    transform: scale(1.05);
}

.ad-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.ad-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background: var(--primary-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.ad-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.ad-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-ad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ad:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

@media (min-width: 600px) {
    .ad-container {
        flex-direction: row;
        align-items: center;
    }

    .ad-image-wrapper {
        width: 40%;
        height: auto;
        min-height: 220px;
    }

    .ad-content {
        width: 60%;
        padding: 2rem;
    }

    .ad-image {
        height: 100%;
    }
}


.delay-7 {
    animation-delay: 0.7s;
}

.delay-8 {
    animation-delay: 0.8s;
}

/* Advanced Metrics Grid */
.advanced-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.panel-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-accent);
}

/* Word Balance */
.word-balance-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-label {
    width: 80px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.balance-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.balance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

#commonBar {
    background: #3b82f6;
}

#uncommonBar {
    background: #8b5cf6;
}

#emotionalBar {
    background: #f59e0b;
}

#powerBar {
    background: #ef4444;
}

.balance-value {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tags (Sentiment & Type) */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tag-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tag.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Score Display Utilities */
.score-label-small {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.score-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin: 0.75rem 0 0 0;
    line-height: 1.5;
}

/* Google Preview */
.google-preview {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: #4d5156;
    font-family: arial, sans-serif;
    max-width: 600px;
}

.google-url {
    font-size: 14px;
    color: #202124;
    margin-bottom: 5px;
}

.google-title {
    color: #1a0dab;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 3px;
    cursor: pointer;
}

.google-title:hover {
    text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .score-overview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .score-circle {
        margin-bottom: 1rem;
    }

    .advanced-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Competitor Analysis Section */
.competitor-input-area {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.keyword-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}


.keyword-input:focus {
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.1);
}

.rank-summary {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.rank-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-total {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.competitor-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competitor-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.competitor-item.user-item {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: white;
}

.comp-content {
    flex: 1;
}

.comp-title {
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.comp-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
}

.comp-score {
    font-weight: 700;
    color: var(--primary-accent);
}

.delay-9 {
    animation-delay: 0.9s;
}

.delay-10 {
    animation-delay: 1.0s;
}

.delay-11 {
    animation-delay: 1.1s;
}

.delay-12 {
    animation-delay: 1.2s;
}

.delay-13 {
    animation-delay: 1.3s;
}

/* New Advanced Metrics Styling */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    min-height: 140px;
    justify-content: space-between;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.score-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease, background 0.3s ease;
}

/* Clickbait Risk Meter */
.risk-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    min-height: 140px;
    justify-content: space-between;
}

.risk-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-badge.low {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.risk-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.risk-badge.high {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.risk-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.risk-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease, background 0.3s ease;
}

/* Suggestions Panel */
.suggestions-panel {
    padding: 2rem;
}

.suggestions-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.suggestion-category {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-category.hidden {
    display: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-header i {
    width: 20px;
    height: 20px;
}

/* Category-specific colors */
.suggestion-category.working {
    border-left: 3px solid #10b981;
}

.suggestion-category.working .category-header {
    color: #34d399;
}

.suggestion-category.quick-wins {
    border-left: 3px solid #fbbf24;
}

.suggestion-category.quick-wins .category-header {
    color: #fbbf24;
}

.suggestion-category.strategic {
    border-left: 3px solid #3b82f6;
}

.suggestion-category.strategic .category-header {
    color: #60a5fa;
}

.suggestion-category.warnings {
    border-left: 3px solid #ef4444;
}

.suggestion-category.warnings .category-header {
    color: #f87171;
}

.suggestion-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
}

.suggestion-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.suggestion-category.working .suggestion-list li::before {
    color: #10b981;
}

.suggestion-category.quick-wins .suggestion-list li::before {
    color: #fbbf24;
}

.suggestion-category.strategic .suggestion-list li::before {
    color: #3b82f6;
}

/* Newsletter Section */
.newsletter-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.4);
}

@media (min-width: 600px) {
    .newsletter-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .newsletter-text {
        flex: 1;
        padding-right: 2rem;
    }

    .newsletter-form {
        flex: 1;
    }
}

.suggestion-category.warnings .suggestion-list li::before {
    color: #ef4444;
}

/* Additional emotion tags */
.tag.curiosity {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tag.urgency {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag.fear {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}