/* Reset and base styles */
:root {
    /* Light theme variables */
    --bg-color: hsla(300, 100%, 99%, 0.541);
    --text-color: #333;
    --card-bg: white;
    --header-bg: rgba(26, 26, 26, 0.9);
    --section-bg: rgba(255, 255, 255, 0.9);
    --gradient-start: #8a2be2;
    --gradient-middle: #ff1493;
    --gradient-end: #ff4500;
    --border-color: rgba(138, 43, 226, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --input-bg: rgba(244, 244, 244, 0.8);
    --input-border: rgba(138, 43, 226, 0.3);
    --card-text: #666;
    --heading-color: #ff1493;
    --secondary-heading: #8a2be2;
    --overlay-color: rgba(255, 255, 255, 0.9);
    --primary-color: #ff4d4d;
    --secondary-color: #333;
    --footer-bg: #333;
    --footer-text: #fff;
    --nav-link-color: #333;
    --nav-link-hover: #ff4d4d;
}

[data-theme="dark"] {
    /* Dark theme variables */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --header-bg: rgba(0, 0, 0, 0.9);
    --section-bg: rgba(18, 18, 18, 0.9);
    --gradient-start: #6a1db2;
    --gradient-middle: #d81b60;
    --gradient-end: #e64a19;
    --border-color: rgba(138, 43, 226, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --input-bg: rgba(30, 30, 30, 0.8);
    --input-border: rgba(138, 43, 226, 0.5);
    --card-text: #b0b0b0;
    --heading-color: #ff4081;
    --secondary-heading: #b388ff;
    --overlay-color: rgba(18, 18, 18, 0.9);
    --primary-color: #ff6b6b;
    --footer-bg: #1a1a1a;
    --footer-text: #f5f5f5;
    --nav-link-color: #f5f5f5;
    --nav-link-hover: #ff6b6b;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    background-attachment: fixed;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    padding-top: 70px; /* Adjust this value based on your header height */
    background-color: var(--bg-color);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: -1;
    transition: background 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

[data-theme="dark"] .theme-toggle {
    background: var(--nav-link-hover);
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--header-bg);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

header.hide {
    transform: translateY(-100%);
}

header.show {
    transform: translateY(0);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

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

.logo img.header-logo {
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gradient-middle);
    box-shadow: 0 0 10px var(--gradient-middle),
                0 0 20px var(--gradient-end),
                inset 0 0 10px var(--gradient-middle);
    transition: all 2s ease;
    transform: rotate(-5deg);
}

.logo img.header-logo:hover {
    box-shadow: 0 0 15px var(--gradient-middle),
                0 0 30px var(--gradient-end),
                inset 0 0 15px var(--gradient-middle);
    transform: scale(2) rotate(5deg);
    animation: spin 5s ease;
}

/* Added spin animation for touch devices */
@media (hover: none) {
    .logo img.header-logo:active {
        animation: spin 1s ease;
    }
}

/* Spin animation keyframes */
@keyframes spin {
    0% {
        transform: scale(2) rotate(5deg);
    }
    100% {
        transform: scale(2) rotate(365deg);
    }
}

.logo h1 {
    color: #ff4d4d;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: none;
    background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--nav-link-hover);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('img of png/Free fire Name Logo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 0, 0, 0.6),
        rgba(255, 165, 0, 0.6),
        rgba(255, 255, 0, 0.6),
        rgba(0, 128, 0, 0.6),
        rgba(0, 0, 255, 0.6),
        rgba(75, 0, 130, 0.6),
        rgba(238, 130, 238, 0.6)
    );
    background-size: 400% 400%;
    z-index: 1;
    backdrop-filter: blur(3px);
    animation: rgbFlow 15s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@keyframes rgbFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
    animation: pulse 3s ease-in-out infinite;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 15px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6);
    background: linear-gradient(to right, #ff3019, #ff0000, #ff3019);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
    font-weight: 900;
    position: relative;
    animation: textGradient 3s linear infinite;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: scale(1.05);
}

@keyframes textGradient {
    to {
        background-position: 200% center;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.hero-content h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    text-shadow: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: rgba(0, 0, 0, 0.15);
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff3019 0%, #e2b04a 50%, #ff3019 100%);
    background-size: 200% auto;
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    animation: gradientButton 3s infinite;
}

@keyframes gradientButton {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background-color: var(--section-bg);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    text-shadow: none;
    transition: color 0.3s ease;
}

.about-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary-heading);
    transition: color 0.3s ease;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 0 0 400px;
    position: relative;
    height: 300px;
}

.image-transition-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
}

.transition-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1) rotate(-2deg) translateZ(-100px);
    filter: brightness(0.8) blur(5px);
}

.transition-image.active {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateZ(0);
    filter: brightness(1) blur(0);
}

.transition-image.fade-out {
    opacity: 0;
    transform: scale(0.9) rotate(2deg) translateZ(100px);
    filter: brightness(0.8) blur(5px);
}

/* Tips Section */
.tips-section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--section-bg);
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.tips-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
    text-shadow: none;
    transition: color 0.3s ease;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.2);
}

.tip-card i {
    font-size: 3rem;
    background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.tip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-heading);
    transition: color 0.3s ease;
}

/* Responsive styles for About section */
@media (max-width: 768px) {
    .about-section {
        padding: 2rem 1rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        height: 250px;
    }

    .image-transition-container {
        height: 250px;
    }

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

@media (max-width: 480px) {
    .about-image {
        height: 200px;
    }

    .image-transition-container {
        height: 200px;
    }
}

/* Characters and Pets Sections */
.characters-section,
.pets-section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--section-bg);
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.characters-section h2,
.pets-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
    text-shadow: none;
    transition: color 0.3s ease;
}

.character-grid,
.pets-grid,
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Update pet-grid to have 3 columns */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .pet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--header-bg);
    color: white;
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--heading-color);
    text-shadow: none;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    font-size: 2rem;
    color: white;
    transition: all 0.3s;
}

.social-icon:hover {
    color: #ff1493;
    transform: translateY(-5px);
}

/* Instagram specific highlight effect */
.social-icon[href*="instagram"] {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(220, 39, 67, 0.5);
}

.social-icon[href*="instagram"]:hover {
    text-shadow: 0 0 20px rgba(220, 39, 67, 0.8);
    transform: scale(1.2) translateY(-5px);
}

/* YouTube specific highlight effect */
.social-icon[href*="youtube"] {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.social-icon[href*="youtube"]:hover {
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    transform: scale(1.2) translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1.5rem;
    transition: background-color 0.3s, color 0.3s;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Character and Pet Cards */
.character-card,
.pet-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.character-card:hover,
.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--gradient-middle);
}

.character-card img,
.pet-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-color);
}

.character-card:hover img,
.pet-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.character-card .character-info,
.pet-card .pet-info {
    text-align: center;
    width: 100%;
}

.character-card h3,
.pet-card h3 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.character-card p,
.pet-card p {
    color: var(--card-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.character-card .ability,
.pet-card .ability {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-middle));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.character-card:hover .ability,
.pet-card:hover .ability {
    transform: scale(1.05);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img of png/Free fire Name Logo.png');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
    margin-top: 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(255, 20, 147, 0.3), rgba(255, 69, 0, 0.3));
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    font-weight: 800;
    transition: background 0.3s ease;
}

.page-header h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    text-shadow: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: rgba(0, 0, 0, 0.15);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* Filter Container */
.filter-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.search-input:focus {
    border-color: var(--heading-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--input-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-color);
}

.filter-btn:hover {
    background-color: rgba(138, 43, 226, 0.2);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.4);
}

/* Character Type Badge */
.character-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 0 1rem 1rem;
}

.character-type.active {
    background: linear-gradient(to right, #4CAF50, #45a049);
    color: white;
}

.character-type.passive {
    background: linear-gradient(to right, #2196F3, #1e88e5);
    color: white;
}

/* Character Card Animation */
.character-card,
.pet-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.character-card.visible,
.pet-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        height: 250px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .character-grid,
    .pets-grid,
    .pet-grid {
        grid-template-columns: 1fr;
    }
}

/* Character and Pet Detail Pages */
.character-detail-section,
.pet-detail-section {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin: 2rem auto;
    max-width: 1200px;
}

.character-detail-container,
.pet-detail-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.character-detail-image,
.pet-detail-image {
    flex: 0 0 300px;
}

.character-detail-image img,
.pet-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.character-detail-content,
.pet-detail-content {
    flex: 1;
}

.character-detail-content h2,
.pet-detail-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.character-detail-content h3,
.pet-detail-content h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.character-detail-content p,
.pet-detail-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ability-detail {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.ability-detail h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ability-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
}

.stat-label {
    color: var(--text-color);
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--text-color);
}

#combinations {
    list-style-type: none;
    padding: 0;
}

#combinations li {
    color: var(--text-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

#combinations li:last-child {
    border-bottom: none;
}

/* Responsive styles for detail pages */
@media (max-width: 768px) {
    .character-detail-container,
    .pet-detail-container {
        flex-direction: column;
    }

    .character-detail-image,
    .pet-detail-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .ability-stats {
        grid-template-columns: 1fr;
    }
}

/* Weapons Section Styles */
.weapons-section {
    padding: 2rem;
    background-color: var(--section-bg);
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.weapon-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.weapon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--gradient-middle);
}

.weapon-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.weapon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.weapon-card:hover .weapon-image img {
    transform: scale(1.05);
}

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

.weapon-info h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.weapon-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.stat-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-middle));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.weapon-description {
    color: var(--card-text);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.weapon-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.weapon-details span {
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid var(--border-color);
}

.weapon-details i {
    color: var(--gradient-middle);
}

/* Filter Container Styles */
.filter-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s ease;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.search-input:focus {
    border-color: var(--heading-color);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: var(--input-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-color);
}

.filter-btn:hover {
    background-color: rgba(138, 43, 226, 0.2);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--gradient-middle), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 10px rgba(255, 20, 147, 0.4);
}

/* Responsive Design for Weapons Page */
@media (max-width: 768px) {
    .weapons-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .filter-buttons {
        flex-direction: column;
        width: 100%;
    }

    .filter-btn {
        width: 100%;
    }

    .weapon-details {
        flex-direction: column;
    }

    .weapon-details span {
        width: 100%;
        justify-content: center;
    }
}

/* Weapons Page Styles */
.weapons-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.weapons-header {
    text-align: center;
    margin-bottom: 2rem;
}

.weapons-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.weapons-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.weapons-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.weapon-search {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.weapon-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: white;
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.weapon-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.weapon-card:hover {
    transform: translateY(-5px);
}

.weapon-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-primary);
}

.weapon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.weapon-info {
    padding: 1.5rem;
}

.weapon-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.weapon-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.weapon-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.stat-label {
    min-width: 80px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.weapon-tips {
    padding: 4rem 0;
    background-color: var(--section-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .weapons-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

.email-contact {
    margin-top: 20px;
    text-align: center;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.email-link i {
    font-size: 1.2rem;
}

.privacy-content {
    padding: 4rem 2rem;
    background-color: var(--section-bg);
    color: var(--text-color);
}

.privacy-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    color: var(--heading-color);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.privacy-content h3 {
    color: var(--secondary-heading);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.privacy-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.privacy-content a:hover {
    color: #ff3333;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 2rem 1rem;
    }
    
    .privacy-content h2 {
        font-size: 1.5rem;
    }
    
    .privacy-content h3 {
        font-size: 1.2rem;
    }
}

/* Image Protection */
img:not(.header-logo):not(.transition-image) {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.image-container:not(.image-transition-container):not(.logo) {
    position: relative;
    display: inline-block;
}

.image-container:not(.image-transition-container):not(.logo)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Allow dragging for specific images that need it */
.header-logo, .transition-image {
    pointer-events: auto;
    user-select: auto;
    -webkit-user-drag: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
}

/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 20px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 12px 25px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--premium-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav a:hover {
    color: var(--premium-gold);
    transform: translateY(-3px);
}

.mobile-nav a:hover::before {
    width: 80%;
}

.mobile-nav a.active {
    color: var(--premium-gold);
    font-weight: bold;
}

.mobile-nav a.active::before {
    width: 80%;
    background: var(--premium-gold);
}

.mobile-close-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 15px;
    transition: all 0.3s ease;
    z-index: 1001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-close-btn:hover {
    color: var(--premium-gold);
    transform: translateX(-50%) rotate(90deg);
    background: rgba(255, 215, 0, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    color: var(--premium-gold);
}

.mobile-menu-btn.active {
    color: var(--premium-gold);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    main {
        margin-top: 60px;
    }
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Header scroll behavior */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    main {
        margin-top: 60px;
    }
}

/* Pet Detail Pages */
.pet-detail-section {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin: 2rem auto;
    max-width: 1200px;
}

.pet-detail-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.pet-detail-image {
    flex: 0 0 300px;
}

.pet-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.pet-detail-content {
    flex: 1;
}

.pet-detail-content h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.pet-detail-content h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.pet-detail-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.pet-ability-detail {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.pet-ability-detail h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pet-ability-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pet-stat {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 6px;
}

.pet-stat-label {
    color: var(--text-color);
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.pet-stat-value {
    color: var(--text-color);
}

.pet-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding: 0 20px;
}

.pet-nav-button {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.pet-nav-button:hover {
    background-color: var(--nav-link-hover);
    color: white;
}

.pet-nav-button i {
    margin: 0 5px;
}

#prev-pet {
    padding-left: 15px;
}

#next-pet {
    padding-right: 15px;
}

/* Responsive styles for pet detail pages */
@media (max-width: 768px) {
    .pet-detail-container {
        flex-direction: column;
    }

    .pet-detail-image {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto;
    }

    .pet-ability-stats {
        grid-template-columns: 1fr;
    }
}

/* Ad Container Styles */
.ad-container {
    margin: 20px auto;
    max-width: 1200px;
    text-align: center;
    background: transparent;
    padding: 10px;
    border-radius: 8px;
}

.header-ad {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(42, 42, 42, 0.95);
    padding: 10px;
    margin: 0;
    width: 100%;
}

.content-ad {
    margin: 30px auto;
    padding: 15px;
    background: rgba(42, 42, 42, 0.5);
    border-radius: 8px;
}

.footer-ad {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: rgba(42, 42, 42, 0.95);
    padding: 10px;
    margin: 0;
    width: 100%;
}

/* Sidebar Ad */
.sidebar-ad {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 99;
}

/* In-Content Ad */
.in-content-ad {
    margin: 20px 0;
    padding: 15px;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 8px;
}

/* Responsive Ad Styles */
@media (max-width: 768px) {
    .header-ad {
        position: relative;
        top: 0;
    }
    
    .footer-ad {
        position: relative;
        bottom: 0;
    }
    
    .sidebar-ad {
        display: none;
    }
    
    .ad-container {
        margin: 15px auto;
        padding: 8px;
    }
}

/* Prevent Ads from Breaking Layout */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

/* Make ad containers collapse when ads aren't present */
.ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
    transition: all 0.3s ease;
}

/* Additional style for containers with no ads */
.ad-container:empty,
.ad-container:has(ins.adsbygoogle[style*="display: none"]) {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

/* Ad Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-container {
    animation: fadeIn 0.5s ease-in;
    transition: all 0.3s ease;
}

/* AdSense Styles */
ins.adsbygoogle {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

/* Header Ad */
.header-ad ins.adsbygoogle {
    max-width: 728px;
    height: 90px;
    margin: 10px auto;
}

/* Content Ad */
.content-ad ins.adsbygoogle {
    max-width: 336px;
    height: 280px;
    margin: 20px auto;
}

/* Sidebar Ad */
.sidebar-ad ins.adsbygoogle {
    max-width: 300px;
    height: 250px;
    margin: 20px auto;
}

/* Footer Ad */
.footer-ad ins.adsbygoogle {
    max-width: 728px;
    height: 90px;
    margin: 20px auto;
}

/* Mobile Responsive Ads */
@media (max-width: 768px) {
    .header-ad ins.adsbygoogle,
    .footer-ad ins.adsbygoogle {
        max-width: 320px;
        height: 100px;
    }
    
    .content-ad ins.adsbygoogle {
        max-width: 300px;
        height: 250px;
    }
    
    .sidebar-ad {
        display: none;
    }
}

/* Ensure Ads Don't Overflow */
.ad-container {
    overflow: hidden;
    position: relative;
}

/* Fallback for browsers that don't support :has */
@media (max-width: 1000000px) {
    /* This will be included by all browsers */
    .ad-container--empty {
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        min-height: 0 !important;
    }
}

/* Pet Card Styles */
.pet-card {
    background-color: #121212;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.pet-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.pet-card .card-content {
    padding: 15px;
}

.pet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.pet-card h3 {
    margin: 15px 0 10px;
    color: #ff9d00;
    font-size: 1.4rem;
}

.pet-card .ability {
    color: #aaa;
    font-style: italic;
    margin-bottom: 10px;
}

.pet-card p {
    color: #ddd;
    margin-bottom: 10px;
} 