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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --background: #ecf0f1;
    --card-background: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(52, 152, 219, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Global links */
a:link {
    color: #3498db;
    text-decoration: none;
}

a:visited {
    color: #3498db;
}

a:hover {
    color: #3498db;
    text-decoration: underline;
}

a:active {
    color: #34495e;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.search-container {
    margin-bottom: 2rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

input[type="text"]:not(.share-url-input) {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    background: var(--background);
}

input[type="text"]:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.results-info {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

/* Share box*/
.share-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.share-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.share-url-container {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.share-url-input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    background: var(--background);
    font-family: monospace;
    max-width: 400px;
    width: 50%;
}

.copy-url-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-url-btn:hover {
    background: #2980b9;
}

.share-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.share-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.share-separator {
    color: var(--text-secondary);
}


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

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

.card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--hover-shadow);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.abbreviation {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.stands-for {
    font-size: 1.05rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.meaning {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    font-size: 1.2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: white;
    font-size: 1.2rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

footer {
    margin-top: 4rem;
    padding: 2rem 1rem;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.donation-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.bitcoin-address {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    max-width: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bitcoin-address:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

/* LinkedIn button */
a.linkedin-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: #0077b5;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

a.linkedin-link:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    input[type="text"] {
        font-size: 1rem;
    }

    .abbreviation {
        font-size: 1.5rem;
    }
}

.highlight {
    background: linear-gradient(120deg, #ffd700 0%, #ffed4e 100%);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #2980b9;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Donation Table Styles */
.supporters-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.supporters-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.donation-table-container {
    overflow-x: auto;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
}

.donation-table {
    width: 100%;
    border-collapse: collapse;
}

.donation-table thead {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid white;
}

.donation-table th {
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.donation-table th:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.sort-indicator {
    margin-left: 6px;
    opacity: 0.5;
    font-size: 12px;
    transition: opacity 0.3s ease;
}

.donation-table th:hover .sort-indicator {
    opacity: 1;
}

.donation-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.donation-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.donation-row:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 17px;
}

.donation-row.highlighted {
    background: rgba(255, 255, 255, 0.2);
    border-left: 1px solid white;
    padding-left: 16px;
}

.donation-row:last-child td {
    border-bottom: none;
}

.donation-table a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.donation-table a:hover {
    text-decoration: underline;
}

.donation-message {
    margin-top: 20px;
    font-size: 14px;
    color: white;
    text-align: center;
    max-width: 700px;
}

@media (max-width: 600px) {

    .donation-table th,
    .donation-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .donation-table th {
        font-size: 12px;
    }
}