:root {
    --primary-color: #000;
    --secondary-color: #4B4B4B;
    --highlight-color: #3300FF;
    --card-bg: #F9F9F9;
    --button-bg: #000;
    --button-text: #fff;
}

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

button {
    font-family: inherit;
}

body {
    font-family: 'Afacad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff;
    color: var(--primary-color);
    line-height: 1.5;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 280px);
    gap: 1.5rem;
    justify-content: center;
}
@media (max-width: 1250px) {
    .domains-grid {
        grid-template-columns: repeat(3, 280px);
    }
}


.domain-card, .welcome-card {
    padding: 1.5rem 1rem;
    border-radius: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 420px;
}

.domain-card {
    background-color: var(--card-bg);
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: cardAppear 0.6s ease forwards;
}
.domain-card--sold {
    background-color: #fffafa;
}
.domain-card:nth-child(1) { animation-delay: 0.1s; }
.domain-card:nth-child(2) { animation-delay: 0.2s; }
.domain-card:nth-child(3) { animation-delay: 0.3s; }
.domain-card:nth-child(4) { animation-delay: 0.4s; }
.domain-card:nth-child(5) { animation-delay: 0.5s; }
.domain-card:nth-child(6) { animation-delay: 0.6s; }
.domain-card:nth-child(7) { animation-delay: 0.7s; }
.domain-card:nth-child(8) { animation-delay: 0.8s; }
.domain-card:nth-child(9) { animation-delay: 0.9s; }
.domain-card:nth-child(10) { animation-delay: 1.0s; }
.domain-card:nth-child(11) { animation-delay: 1.1s; }
.domain-card:nth-child(12) { animation-delay: 1.2s; }

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

.rating-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-bar {
    height: 4px;
    background-color: #E0E0E0;
    flex: 1;
    border-radius: 2px;
    min-width: 0;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: barAppear 0.15s ease forwards;
}

.rating-item:nth-child(1) .rating-bar:nth-child(1) { animation-delay: 0.1s; }
.rating-item:nth-child(1) .rating-bar:nth-child(2) { animation-delay: 0.15s; }
.rating-item:nth-child(1) .rating-bar:nth-child(3) { animation-delay: 0.2s; }
.rating-item:nth-child(1) .rating-bar:nth-child(4) { animation-delay: 0.25s; }
.rating-item:nth-child(1) .rating-bar:nth-child(5) { animation-delay: 0.3s; }

.rating-item:nth-child(2) .rating-bar:nth-child(1) { animation-delay: 0.35s; }
.rating-item:nth-child(2) .rating-bar:nth-child(2) { animation-delay: 0.4s; }
.rating-item:nth-child(2) .rating-bar:nth-child(3) { animation-delay: 0.45s; }
.rating-item:nth-child(2) .rating-bar:nth-child(4) { animation-delay: 0.5s; }
.rating-item:nth-child(2) .rating-bar:nth-child(5) { animation-delay: 0.55s; }

.rating-item:nth-child(3) .rating-bar:nth-child(1) { animation-delay: 0.6s; }
.rating-item:nth-child(3) .rating-bar:nth-child(2) { animation-delay: 0.65s; }
.rating-item:nth-child(3) .rating-bar:nth-child(3) { animation-delay: 0.7s; }
.rating-item:nth-child(3) .rating-bar:nth-child(4) { animation-delay: 0.75s; }
.rating-item:nth-child(3) .rating-bar:nth-child(5) { animation-delay: 0.8s; }

@keyframes barAppear {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.rating-label {
    font-size: 0.75rem;
    color: var(--secondary-color);
    min-width: 70px;
}

.rating-bars {
    display: flex;
    gap: 2px;
    flex: 1;
}

:not(.domain-card--sold) .rating-bar.active {
    background-color: #afafaf;
    transition: background-color 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 0px 0 rgba(51, 0, 255, 0.4);
}
.domain-card:hover:not(.domain-card--sold) .rating-bar.active {
    background-color: var(--highlight-color);
    box-shadow: 0 0 10px 0 rgba(51, 0, 255, 0.4);
}
/* Success state for the card */
.domain-card.copy-success {
    background-color: #f0fff0;
}

.welcome-card {
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
}

.welcome-card h3 {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    /* opacity: 0.7; */
}

.welcome-card h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

.welcome-card p {
    font-size: 0.875rem;
    /* opacity: 0.7; */
    max-width: 200px;
    line-height: 1.5;
}
.welcome-card img {
    margin-bottom: 1rem;
    margin-top: 0.6rem;
}

.globe-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 70px;
    height: 70px;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='60' cy='60' r='59' stroke='white' stroke-width='1'/%3E%3Cellipse cx='60' cy='60' rx='30' ry='59' stroke='white' stroke-width='1'/%3E%3Cellipse cx='60' cy='60' rx='45' ry='59' stroke='white' stroke-width='1'/%3E%3Cline x1='1' y1='60' x2='119' y2='60' stroke='white' stroke-width='1'/%3E%3Cline x1='1' y1='30' x2='119' y2='30' stroke='white' stroke-width='1'/%3E%3Cline x1='1' y1='90' x2='119' y2='90' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-10deg);
}

.domain-header {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    /* margin-bottom: 0.5rem; */
}

.domain-header img {
    height: 32px;
    max-width: 100%;
}

/* Updated tooltip styles */
.copy-tooltip {
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    background-color: var(--highlight-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: tooltipFadeInOut 2s ease-in-out;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

@keyframes tooltipFadeInOut {
    0% { 
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    15% { 
        opacity: 1;
        transform: translate(-50%, 0);
    }
    85% { 
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% { 
        opacity: 0;
        transform: translate(-50%, -10px);
    }
}

.domain-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--highlight-color);
}

.tagline {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.description {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: auto;
}

.buy-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 0.55rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Afacad', sans-serif;
    cursor: pointer;
    width: fit-content;
    transition: opacity 0.2s ease;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.sold-pseudo-button{
    /* background-color: #f0f0f0; */
    /* color: var(--button-text); */
    border: none;
    padding: 0.55rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Afacad', sans-serif;
    /* cursor: pointer; */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.buy-button:hover {
    background-color: var(--highlight-color);
    transform: translateY(-2px);
}

.author-card {
    background-color: white;
    /* border: 1px solid #EAEAEA; */
    padding: 0.5rem;
    max-width: 500px;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* margin-bottom: 1rem; */
}

.author-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.author-link, .link {
    color: var(--highlight-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    width: fit-content;
}

.author-link:hover, .link:hover {
    border-bottom: 2px solid var(--highlight-color);
    /* text-decoration: underline; */
}
.dark-mode .author-link:hover, .dark-mode .link:hover {
    border-color: #CCFF00;
}



/* Globe Animation Styles */
.globe {
    position: absolute;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
    margin: 0 auto;
    top: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.vertical {
    position: absolute;
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    height: 100%;
    left: 50%;
    transform-origin: center bottom;
}
@media (max-width: 920px) {
    .globe {
        width: 100px;
        height: 100px;
        top: 60%;
    }
    body {
        padding: 1rem;
    }
    .domain-card, .welcome-card {
        height: 420px;
    }

    .welcome-card h1 {
        font-size: 2.5rem;
    }
    

    .domains-grid {
        grid-template-columns: 1fr;
    }
    .welcome-card img {
        max-width: 200px;
    }
}
@keyframes rotate {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

/* FAQ Styles */
.faq-card {
    background-color: white;
    padding: 20px 20px 40px;
    border-radius: 1.5rem;
    height: auto;
    max-width: 500px;
}

.faq-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-indent: -9999px;
    background-image: url("faq_word.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    height: 30px;
    /* margin-top: 20px; */
    /* margin-bottom: 1rem; */
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.5;
}

/* Footer Styles */
.footer {
    margin-top: 10rem;
    padding: 2rem 0;
    /* border-top: 1px solid #EAEAEA; */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    margin: 0 auto;
}

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

.footer-link {
    /* color: var(--secondary-color); */
    /* text-decoration: none; */
    font-size: 0.875rem;
    /* transition: color 0.2s ease; */
    width: fit-content;
}
.dark-mode .link, .dark-mode .author-link {
    color: #fff;
}
.footer-link:hover {
    /* color: var(--highlight-color); */
}

.new-badge {
    background-color: var(--highlight-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.012rem 0.375rem 0.015em;
    border-radius: 0.5rem;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
}

/* Dark mode styles */
.dark-mode {
    --primary-color: #ffffff;
    --secondary-color: #b0b0b0;
    --highlight-color: #5c4dff;
    --card-bg: #242424;
    --button-bg: #ffffff;
    --button-text: #000;
    background-color: #121212;
    color: var(--primary-color);
}

.dark-mode .domain-card {
    background-color: var(--card-bg);
    color: var(--primary-color);
}
.dark-mode .domain-card--sold {
    background-color: #0a0a0a;
}

.dark-mode .welcome-card {
    background-color: #242424;
}

.dark-mode .buy-button {
    background-color: var(--button-bg);
    color: var(--button-text);
}

.dark-mode .footer {
    border-top: 1px solid #333;
}

.dark-mode .rating-bar {
    background-color: #444;
}

.dark-mode :not(.domain-card--sold) .rating-bar.active {
    background-color: #777;
}

.dark-mode .domain-card:hover:not(.domain-card--sold) .rating-bar.active {
    background-color: #CCFF00;
    box-shadow: 0 0 10px 0 rgba(51, 0, 255, 0.4);
}

.dark-mode .domain-card.copy-success {
    background-color: #1a3a1a;
}

/* Dark mode toggle button */
.dark-mode-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.dark-mode-container.top-right {
    position: fixed;
    top: 1rem;
    right: 1rem;
    margin: 0;
    z-index: 100;
}

.dark-mode-button {
    background-color: #eee;
    border: none;
    border-radius: 30px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    overflow: hidden;
}

.dark-mode-button::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.dark-mode-button.active {
    background-color: #555;
}

.dark-mode-button.active::after {
    transform: translateX(30px);
    background-color: #333;
}

.dark-mode-icon, .light-mode-icon {
    z-index: 0;
    font-size: 14px;
    line-height: 1;
}

.light-mode-icon {
    margin-left: auto;
}

.dark-mode .domain-header img,
.dark-mode .faq-card h2,
.dark-mode .escrow-logo {
    filter: invert(1);
}

@media (max-width: 768px) {
    .dark-mode-container {
        margin-top: 1.5rem;
    }

    .dark-mode-container.top-right {
        top: 0.5rem;
        right: 0.5rem;
    }
} 