/* --- CSS Variables for Easy Customization --- */
:root {
    --dark-green: #1a3a1a; /* Inspired by Type O Negative */
    --black: #0d0d0d;
    --off-white: #e0e0e0;
    --accent-orange: #ff8c00; /* For the popup button */
    --glass-color: rgba(0, 0, 0, 0.25); /* Semi-transparent color for buttons */
    --font-main: 'Nunito', sans-serif;
    --custom-cursor: url(https://files.catbox.moe/whnxem.png), auto;
}

/* --- General Body and Background Styling --- */
body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--off-white);
    background-color: var(--dark-green);
    
    /* Center the content vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box; /* Ensures padding doesn't add to the width/height */
}

/* Custom cursor for all elements, moved outside the broken body tag */
* {
    cursor: url(https://files.catbox.moe/whnxem.png), auto;
}

/* Applying the blurred and darkened background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://files.catbox.moe/r2i7i0.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4); /* Blur and darken the image */
    z-index: -1; /* Place it behind all content */
        
    /* --- THIS IS THE NEW LINE TO ADD --- */
    transform: scale(1.1); /* Zooms the element by 10% to hide blurry edges */
}

/* --- Main Content Container --- */
.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* --- Header Elements (PFP, Username, Bio) --- */
.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes the image a perfect circle */
    border: 3px solid var(--off-white);
    /* The requested realistic double drop-shadow */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.username {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 2rem;
}

.bio {
    margin-top: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* --- Link Buttons Styling --- */
main {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between the buttons */
}

.link-button {
    background-color: var(--glass-color);
    color: var(--off-white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 20px;
    border-radius: 50px; /* Fully rounded ends */
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* "Liquid Glass" effect on a blurred background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* The realistic double drop-shadow */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.25);
    
    /* Smooth transition for hover and click effects */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Interaction animations for buttons */
.link-button:hover {
    transform: scale(0.98); /* Slightly shrink on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.35);
}

.link-button:active {
    transform: scale(0.95); /* "Pop" effect on click */
}
/* --- POP-UP STYLING (Corrected Specificity) --- */

/* The dark background overlay. This is the DEFAULT state (visible). */
#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Transitions for smooth fade in/out */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}



/* --- POP-UP STYLING (Final Correct Version) --- */

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* This more specific rule correctly HIDES the popup */
#popup-overlay.popup-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.popup-content {
    background-color: var(--black);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

#popup-overlay.popup-hidden .popup-content {
    transform: scale(0.7);
}

.popup-content h2 {
    margin-top: 0;
    color: var(--off-white);
}

.popup-content p {
    color: var(--off-white);
    opacity: 0.8;
    line-height: 1.5;
}

#rickroll-button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background-color: var(--black);
    color: var(--accent-orange);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1rem;
    cursor: var(--custom-cursor);
    border: 2px solid var(--accent-orange);
    transition: background-color 0.2s, color 0.2s;
}

#rickroll-button:hover {
    background-color: var(--accent-orange);
    color: var(--black);
}







/* --- Mobile Touch Cursor Styling --- */

/* 1. Define the "pop and fade" animation for the tap */
@keyframes tap-effect {
  0% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

/* 2. Style the temporary cursor image that gets created on tap */
.touch-cursor {
  position: fixed; /* Position relative to the screen, not the page content */
  width: 24px; /* Adjust size as needed */
  height: 24px;
  pointer-events: none; /* The cursor itself should not be tappable */
  z-index: 9999; /* Ensure it appears on top of everything */
  
  /* Apply the animation we defined */
  animation: tap-effect 0.5s ease-out forwards;
}

/* 3. Media Query to handle cursor visibility across devices */
/* This rule applies the custom cursor ONLY to devices that can hover (like a desktop with a mouse) */
@media (hover: hover) and (pointer: fine) {
  body, a, button {
    cursor: url(https://files.catbox.moe/whnxem.png), auto;
  }
}

/* This rule HIDES the cursor on devices that CANNOT hover (like most phones and tablets) */
@media (hover: none) and (pointer: coarse) {
  body, a, button {
    cursor: none; /* Hide the default system cursor on touch devices */
  }
}





/* --- Styling for the Guide/Content Page --- */

.content-container {
    max-width: 800px; /* A good width for reading */
    margin: 40px auto; /* Center it with some top/bottom margin */
    padding: 20px 40px; /* Add horizontal padding */
    text-align: left; /* Override the main page's center alignment */
    line-height: 1.7; /* Improve readability */
    font-size: 1.1rem;
    
    /* Give it a subtle glass effect to match the main page */
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-container h1, .content-container h2 {
    text-align: center; /* Center the headers */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-container p {
    margin-bottom: 15px;
}

.content-container img {
    max-width: 100%; /* Make images responsive */
    height: auto;
    border-radius: 10px;
    display: block; /* Allows margin auto to work */
    margin: 25px auto; /* Center images and give them space */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.centered-image {
    text-align: center;
    margin: 20px 0;
}

/* Specific style for the circular profile pic */
.centered-image img {
    border: 0px solid var(--off-white);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.content-container ul {
    list-style-type: none; /* Remove default bullets */
    padding-left: 20px;
}

.content-container ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

/* Custom bullet points for style */
.content-container ul li::before {
    content: '→'; /* Custom bullet character */
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* For nested lists, change the bullet */
.content-container ul ul li::before {
    content: '•';
    color: var(--off-white);
}

.content-container hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

/* Info and Warning Box Styles */
.info-box, .warning-box {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 5px solid;
}

.info-box {
    background-color: rgba(0, 150, 255, 0.1);
    border-color: #0096ff;
}

.warning-box {
    background-color: rgba(255, 140, 0, 0.1);
    border-color: var(--accent-orange);
}

.info-box p:last-child, .warning-box p:last-child {
    margin-bottom: 0;
}

/* Style for the back button */
.back-button {
    display: block; /* Make it a block to control width/margin */
    width: fit-content; /* Size to content */
    margin: 40px auto 0 auto; /* Center it */
    text-align: center;
}

/* Birden fazla butonu yan yana getirmek için */
.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Butonlar arası boşluk */
    margin-top: 40px;
    flex-wrap: wrap; /* Mobil cihazlarda butonlar sığmazsa alt alta insin */
}

/* chain.html'deki eski .back-button stilini kaldırabilir veya üzerine yazabiliriz. */
/* Bu yeni grup, onun işini daha iyi görüyor. */
.back-button {
    margin: 0; /* Eski merkezleme kodunu sıfırla */
}

/* mobilechain.html'deki tadilat resmi için stil */
.under-construction-image {
    width: 300px;
    max-width: 80%; /* Küçük ekranlarda taşmasın */
    height: auto;
    margin-bottom: 20px;
}

