/* ✨ Verifypage Styling */
/* Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #101F33, #16242A);
    font-family: 'Orbitron', sans-serif;
    color: #E3F2FD;
    display: flex;
    justify-content: center;
    min-height: 100vh;       /* ✅ changed */
    align-items: flex-start;  /* ✅ changed */
    overflow-y: auto;         /* ✅ enables scrolling */
}
.container {
    background: rgba(16, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    width: 95%;
    max-width: 700px;
    box-shadow: 0 12px 32px rgba(0,255,255,0.1), inset 0 0 8px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;   /* ✅ ensure it doesn't stick to top */
}

h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: #00e5ff;
    text-shadow: 0 0 15px #00e5ff88, 0 0 25px #00b8d4;
    animation: glowLogo 3s ease-in-out infinite alternate;
}
h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: #00e5ff;
    text-shadow: 0 0 15px #00e5ff88, 0 0 25px #00b8d4;
    animation: glowLogo 3s ease-in-out infinite alternate;
}

@keyframes glowLogo {
    from { text-shadow: 0 0 8px #00e5ff; }
    to { text-shadow: 0 0 25px #1de9b6, 0 0 40px #00e5ff; }
}

label {
    font-weight: 600;
    margin-top: 20px;
    display: block;
    color: #b2ebf2;
}

textarea, select, input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: #263238;
    color: #fff;
    transition: 0.3s ease;
}

textarea::placeholder,
input::placeholder {
    color: #9e9e9e;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 10px #00e5ff, 0 0 15px #00bfa5;
    background: #1a1f23;
}

button {
    width: 100%;
    margin-top: 25px;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #00e5ff, #00c853);
    color: #000;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.4);
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #00e5ff, #00c853);
    box-shadow: 0 0 10px #00e5ff, 0 0 30px #00c853;
    transform: scale(1.05);
}
#verifyButton {
    margin-top: 25px !important;
}

#loginButton {
    margin-top: 25px !important;
}

#loadingIndicator {
    margin-top: 20px;
    display: none;
    text-align: center;
    font-style: italic;
    color: #00e5ff;
}

#output {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: none;
    border: 1px solid rgba(255,255,255,0.06);
    color: #cfd8dc;
}

ul {
    padding-left: 20px;
}

a {
    color: #00e5ff;
    text-decoration: none;
}

/* 🔧 Ensure all input fields line up perfectly */
textarea, select, input, button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border-radius: 12px;
    margin: 0 auto;
    padding: 14px;
}

/* 🔧 Uniform height for select & input */
select, input {
    height: 48px;
}

/* 🔧 Keep consistent spacing between fields */
textarea + label,
select + label,
input + label {
    margin-top: 25px;
}
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #263238;
    color: #ffffff;
    font-size: 16px;
    border-radius: 12px;
    padding: 14px;
    border: none;
    outline: none;
    box-shadow: 0 0 6px #00e5ff inset, 0 0 10px #00c85355;
    transition: 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

/* Add a custom dropdown arrow */
select::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #00e5ff;
    pointer-events: none;
}

select {
    background-color: #263238;
    color: #ffffff;
    font-size: 16px;
    border-radius: 12px;
    padding: 14px 40px 14px 14px;
    border: none;
    outline: none;
    box-shadow: 0 0 10px #00e5ff88, 0 0 18px #00c85355;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='%2300e5ff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select:focus {
    background-color: #1a1f23;
    box-shadow: 0 0 12px #00e5ff88, 0 0 20px #00c85388;
}

/* Ensure options follow the theme in Chrome */
select option {
    background-color: #212121;
    color: #e0f7fa;
    padding: 12px;
    border-radius: 0;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
#output li {
    margin-bottom: 18px;
    line-height: 1.5;
    word-break: break-word;       /* ✅ Breaks very long words like URLs */
    white-space: normal;          /* ✅ Allows normal line wrapping */
}
 #subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #b2ebf2;
    margin-top: -10px;
    margin-bottom: 20px;
}
#refCount {
    text-align: right;
    font-size: 0.9rem;
    color: #80deea;
    margin-top: 5px;
}

/* ✨ Homepage Styling */
.container.home {
    max-width: 700px; /* Match verify page width */
    margin-top: 60px;
}

.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    color: #00e5ff;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    color: #b2ebf2;
}

.cta-button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(90deg, #00e5ff, #00c853);
    border: none;
    color: black;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #00e5ff, 0 0 30px #00c853;
}

.section h2 {
    color: #00e5ff;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.section p,
.section ul {
    line-height: 1.6;
    color: #cfd8dc;
}

.credit-note {
    text-align: center;
    color: #b2ebf2;
    margin-top: 15px;
}

.pricing {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background: #1c2533;
    padding: 25px;
    border-radius: 10px;
    width: 280px;
    text-align: center;
    box-shadow: 0 0 10px #00e5ff20;
}

.card h3 {
    color: #00e5ff;
    margin-bottom: 10px;
}

.card p {
    color: #b2dfdb;
    margin: 8px 0;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    color: #90a4ae;
    font-size: 14px;
}

/* 🎯 Verdict Display Styles */
.verdict-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: help;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.verdict-container:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Verdict Types */
.verdict-valid {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border-color: #4caf50;
}

.verdict-valid-with-doi-mismatch {
    background: linear-gradient(135deg, #8bc34a, #558b2f);
    color: white;
    border-color: #8bc34a;
}

.verdict-doi-mismatch-only {
    background: linear-gradient(135deg, #ff9800, #e65100);
    color: white;
    border-color: #ff9800;
}

.verdict-unverified {
    background: linear-gradient(135deg, #ffc107, #f57f17);
    color: #333;
    border-color: #ffc107;
}

.verdict-fake {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
    border-color: #f44336;
}

.verdict-fake-with-doi-mismatch {
    background: linear-gradient(135deg, #f44336, #ff9800);
    color: white;
    border-color: #f44336;
}

/* Tooltip Styles */
.verdict-tooltip {
    position: relative;
    display: inline-block;
}

.verdict-tooltip .tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -140px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.verdict-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.verdict-tooltip:hover .tooltip-text {
    visibility: visible;
}

/* Legend/Filter Styles */
.verdict-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.verdict-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.verdict-legend-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.verdict-legend-item.active {
    border-color: #00e5ff;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.verdict-legend-item.filtered-out {
    opacity: 0.3;
    text-decoration: line-through;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .verdict-container {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .verdict-tooltip .tooltip-text {
        width: 240px;
        margin-left: -120px;
        font-size: 11px;
    }
    
    .verdict-legend {
        flex-direction: column;
        gap: 8px;
    }
    
    .verdict-legend-item {
        font-size: 11px;
    }
}



@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    .container {
        padding: 25px;
    }
}
