/* General Body & Reset */
body {
    font-family: 'Open Sans', sans-serif; /* A clean, modern sans-serif font */
    margin: 0;
    padding: 0;
    background: #1a1a2e; /* Dark background: deep purple-blue */
    color: #e0e0e0; /* Light text: off-white */
    line-height: 1.6;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto; /* Ensures the main content block is centered */
    padding: 20px;
}

h1, h2, h3 {
    font-family: 'Press Start 2P', cursive; /* Retro arcade font for titles */
    color: #e94560; /* A vibrant accent red/pink */
    text-align: center; /* Centers the text of the headings */
    margin-bottom: 20px;
    /* Reduced text shadow for a slightly more professional, less "blocky" look */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

a {
    color: #533483; /* A pleasant purple for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e94560; /* Accent color on hover */
}

/* Header */
header {
    background: #0f3460; /* Dark blue header */
    padding: 15px 0;
    border-bottom: 3px solid #e94560; /* Matching accent border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Shadow for header */
}

header .container {
    display: flex;
    /* Keeps h1/logo and nav on opposite sides, which is common for headers */
    justify-content: space-between;
    align-items: center;
}

/* Style for the logo and title grouping in the header */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and title */
}

.bot-logo {
    height: 50px; /* Adjust size as needed */
    width: auto;
    border-radius: 50%; /* Make it round if desired, or remove for square */
    border: 2px solid #e94560; /* Small border to match accent */
    box-shadow: 0 0 8px rgba(233, 69, 96, 0.6); /* Subtle glow */
}

header h1 {
    color: #fff;
    margin: 0; /* Remove default margin to align with logo */
    font-size: 2.2em;
    text-shadow: none; /* No shadow for header H1 for a cleaner look */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox for nav items */
    gap: 25px; /* Space between nav items */
}

header nav ul li a {
    color: #fff;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Open Sans', sans-serif; /* Use a more readable font for nav links */
}

header nav ul li a:hover {
    background-color: #533483; /* Purple hover background */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1500x500/0f3460/e94560?text=Pet+Simulator+Adventure') no-repeat center center/cover;
    /* Placeholder background image - replace with a real one! */
    text-align: center; /* Centers text content horizontally */
    padding: 100px 20px;
    color: #fff;
}

.hero-section h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff; /* White title on hero */
    /* Reduced text shadow for a cleaner, professional look */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px; /* Centers the paragraph itself */
    /* Reduced text shadow for a cleaner, professional look */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    gap: 20px; /* Space between the buttons */
    margin-top: 40px; /* Space from the paragraph above */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.button {
    display: inline-block;
    background-color: #e94560; /* Accent red button */
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px; /* Pill-shaped button */
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase; /* Make button text uppercase */
    letter-spacing: 1px;
}

.button:hover {
    background-color: #f07b3f; /* Orange-red on hover */
    transform: translateY(-3px); /* More pronounced lift */
}

/* Secondary button style for "Invite Bot" to differentiate slightly */
.button-secondary {
    background-color: #533483; /* A purple tone */
}

.button-secondary:hover {
    background-color: #6a40a8; /* Lighter purple on hover */
}


/* Pets Section */
.pets-section {
    background: #272740; /* Slightly lighter dark background for this section */
    padding: 60px 0;
    text-align: center; /* Centers text content horizontally */
}

.pet-gallery {
    display: grid;
    /* Changed to 4 columns for desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pet-card {
    background: #1a1a2e; /* Darker card background */
    border-radius: 15px; /* More rounded corners */
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid transparent; /* Default border, to be overridden by rarity */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items vertically within the card */
}

.pet-card:hover {
    transform: translateY(-8px); /* Lift higher on hover */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.pet-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #0f3460; /* Border for pet image */
    box-shadow: 0 0 15px rgba(83, 52, 131, 0.5); /* Glow effect for images */
}

.pet-card h3 {
    margin: 10px 0;
    /* Default color for pet name, will be overridden by rarity classes below */
    color: #e0e0e0;
    font-size: 1.8em;
    font-family: 'Press Start 2P', cursive;
    /* Subtle text shadow for pet names */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.pet-card p {
    font-size: 1em;
    color: #ccc;
    margin-bottom: 5px;
    text-align: center;
}

.pet-card p:last-child {
    margin-bottom: 0;
}

/* Rarity Styling for pet cards (border and text color) */
.pet-card p:nth-of-type(1) { /* Assuming Rarity is the first <p> tag */
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9em;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* New Rarity Specific Colors using direct classes for pet card border and name */
.pet-card.fabled { border-color: #90EE90; }
.pet-card.fabled h3 { color: #90EE90; } /* Pet name color */
.pet-card.fabled p:contains("Fabled") { color: #90EE90; }

.pet-card.mystic { border-color: #00BFFF; }
.pet-card.mystic h3 { color: #00BFFF; } /* Pet name color */
.pet-card.mystic p:contains("Mystic") { color: #00BFFF; }

.pet-card.arcane { border-color: #DA70D6; } /* Orchid */
.pet-card.arcane h3 { color: #DA70D6; } /* Pet name color */
.pet-card.arcane p:contains("Arcane") { color: #DA70D6; }

.pet-card.celestial { border-color: #8A2BE2; }
.pet-card.celestial h3 { color: #8A2BE2; } /* Pet name color */
.pet-card.celestial p:contains("Celestial") { color: #8A2BE2; }

.pet-card.mythborn { border-color: #FFD700; }
.pet-card.mythborn h3 { color: #FFD700; } /* Pet name color */
.pet-card.mythborn p:contains("Mythborn") { color: #FFD700; }


/* Coming Soon Pets */
.pet-card.coming-soon {
    opacity: 0.7; /* Slightly faded */
    filter: grayscale(80%); /* Mostly grayscale */
    transform: none; /* No hover lift for coming soon */
    cursor: not-allowed;
    border-color: #444; /* Darker border for coming soon */
    /* Prevent copying */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
    pointer-events: none; /* Disable all pointer events on the card */
    position: relative; /* Needed for overlay */
}

.pet-card.coming-soon:hover {
    transform: none; /* No lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Same shadow as default */
}

.pet-card.coming-soon img {
    filter: brightness(20%) blur(5px); /* Darker and blurred image for coming soon */
    border-color: #333;
    transition: filter 0.5s ease; /* Smooth transition for blur */
}

.pet-card.coming-soon:hover img {
    filter: brightness(0.2) blur(3px); /* Slightly reveal and less blur on hover */
}

.pet-card.coming-soon p {
    color: #888; /* Dim text for coming soon */
}

.pet-card.coming-soon h3 { /* Ensure coming soon pets' names are dimmed */
    color: #888;
}

.pet-card.coming-soon p:contains("Coming Soon") {
    color: #e94560; /* Keep "Coming Soon" text in accent color */
    font-weight: bold;
    font-size: 1.1em;
}

/* Optional: Overlay to further prevent interaction/selection on coming soon cards */
.pet-card.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
    border-radius: 15px;
    z-index: 1; /* Ensure it's above content */
    pointer-events: none; /* Allow clicks to pass through to the card itself if needed, but card has pointer-events: none */
}


/* About Section */
.about-section, .contact-section {
    background: #1a1a2e; /* Same dark background as body */
    padding: 60px 20px;
    text-align: center; /* Centers text content horizontally */
}

.about-section p, .contact-section p {
    max-width: 800px;
    margin: 0 auto 20px; /* Centers the paragraphs themselves */
    font-size: 1.1em;
    color: #ccc;
}

/* Rarity Chart Section */
.rarity-chart-section {
    background: #272740; /* Match pets section background */
    padding: 60px 0;
    text-align: center; /* Centers text content horizontally */
}

.rarity-chart-container {
    display: flex;
    flex-direction: column; /* Stack rarities vertically */
    align-items: center; /* Centers items horizontally within the flex column */
    gap: 15px; /* Space between rarity items */
    margin-top: 40px;
}

.rarity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1a1a2e;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: fit-content; /* Adjust width to content */
    min-width: 250px; /* Minimum width for consistency */
    justify-content: center; /* Centers content within item */
}

.rarity-color-box {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 2px solid #ccc; /* Subtle border */
}

.rarity-item p {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Press Start 2P', cursive;
}

/* Apply rarity colors to chart items */
.rarity-item.fabled .rarity-color-box { background-color: #90EE90; border-color: #7AC77A; }
.rarity-item.fabled p { color: #90EE90; }

.rarity-item.mystic .rarity-color-box { background-color: #00BFFF; border-color: #009ACD; }
.rarity-item.mystic p { color: #00BFFF; }

.rarity-item.arcane .rarity-color-box { background-color: #DA70D6; border-color: #B452B4; }
.rarity-item.arcane p { color: #DA70D6; }

.rarity-item.celestial .rarity-color-box { background-color: #8A2BE2; border-color: #6A1EB4; }
.rarity-item.celestial p { color: #8A2BE2; }

.rarity-item.mythborn .rarity-color-box { background-color: #FFD700; border-color: #D4AF37; }
.rarity-item.mythborn p { color: #FFD700; }


/* Footer */
footer {
    background: #0f3460;
    color: #ccc;
    text-align: center; /* Centers text content horizontally */
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 3px solid #e94560;
}

.footer-links a {
    color: #e0e0e0; /* Light text for footer links */
    margin: 0 8px;
}

.footer-links a:hover {
    color: #e94560; /* Accent on hover */
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    .header-left {
        flex-direction: column; /* Stack logo and title vertically on smaller screens */
        gap: 5px;
    }
    header h1 {
        margin-bottom: 15px;
    }
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .hero-section h2 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    /* Adjust grid for smaller screens to ensure responsiveness */
    .pet-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .pet-card {
        padding: 15px;
    }
    .pet-card img {
        width: 80px;
        height: 80px;
    }
    .pet-card h3 {
        font-size: 1.4em;
    }
    .hero-buttons {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        gap: 15px;
    }
    .rarity-item {
        min-width: unset; /* Remove min-width on small screens */
        width: 90%; /* Take up more width */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    header h1 {
        font-size: 1.8em;
    }
    .bot-logo {
        height: 40px; /* Smaller logo on very small screens */
    }
    .hero-section h2 {
        font-size: 2em;
    }
    .button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .pet-card h3 {
        font-size: 1.2em;
    }
    .pet-card p {
        font-size: 0.8em;
    }
}