/* Base page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #1e1e1e;
    color: #eee;
    line-height: 1.6;
}

/* Entire scrollbar */
::-webkit-scrollbar {
    width: 12px; /* vertical scrollbar width */
    height: 12px; /* horizontal scrollbar height */
}

/* The draggable part (thumb) */
::-webkit-scrollbar-thumb {
    background-color: #1a4f73; /* your colour */
    border-radius: 6px; /* rounded edges */
    border: 3px solid transparent; /* gives padding effect */
}

/* The track (background) */
::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 6px;
}

/* Optional: hover effect for thumb */
::-webkit-scrollbar-thumb:hover {
    background-color: #297bb3;
}

/* Import the font */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

/* Brand button styling */
.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2A2A2A;
  border-radius: 10px;
  cursor: pointer;
  padding: 5px;
  outline: none;
  transition: transform 0.3s ease-in-out;
}

.brand-button:focus {
  outline: none;
}

.brand-button:hover {
  transform: scale(1.1) translateY(-3px) rotate(-2deg);
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);
}

.brand-button .logo {
  height: 40px;
  width: auto;
  border-radius: 10px;
  outline: none;
}

.brand-button .site-name {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: white;
}

.mouse-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(
        circle,
        rgba(79,195,247,0.35),
        transparent 60%
    );
    border-radius: 50%;
    pointer-events: none;
    filter: blur(120px);
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    transition: opacity 1s ease;
}

/* Ripple effect */
.ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(
        circle,
        rgba(79,195,247,0.6),
        transparent 70%
    );
    transform: translate(-50%, -50%);
    animation: rippleAnim 1s ease-out forwards;
    z-index: 0;
    filter: blur(20px);
}

@keyframes rippleAnim {
    to {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

a {
    color: #4fc3f7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: transparent;
    position: relative;
}

.download-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #4fc3f7;
    color: #1e1e1e;
    border-radius: 6px;
    padding: 0.5rem;           /* only enough for icon at start */
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    height: 2rem;
    width: 2rem;               /* width for icon-only button */
    transition: width 0.5s ease; /* slower expansion */
}

.download-btn:hover {
    width: 10rem;              /* enough for icon + text */
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;    /* keep icon centred before hover */
    flex-shrink: 0;
    width: 2rem;               /* reserve space for icon */
}

.download-icon {
    width: 1.5em;
    height: auto;
}

.download-btn,
.download-btn:hover,
.download-btn:focus {
    text-decoration: none;
}

.download-text {
    display: inline-block;
    margin-left: 0.5rem;
    transform: translateX(20px);   /* start slightly to the right */
    opacity: 0;                     /* hidden initially */
    transition: transform 0.5s ease, opacity 0.5s ease; /* slower animation */
    white-space: nowrap;
}

.download-btn:hover .download-text {
    transform: translateX(0);       /* slide in */
    opacity: 1;                     /* fade in */
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 1rem;
    position: relative;
}

.tab-btn {
    padding: 0.5rem 1.2rem;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    background: #2e2e2e;
    color: #ccc;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    transition: 0.2s
}

.tab-btn:hover {
    background: #3a3a3a;
    color: #fff;
}

.tab-btn.active {
    color: #eee;
}

/* Tab underline animation */
.underline {
    position: absolute;
    bottom: -8px ;
    height: 4px;
    background: #4fc3f7;
    border-radius: 2px;
    transition: 0.3s ease;
    z-index: 0;
}

/* Logos inside tabs */
.tab-logo {
    height: 20px;
    width: auto;
    vertical-align: middle;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Tab sections */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    font-weight: 500;
    color: #fff;
    margin-top: 0;
}

/* Lists and steps */
ol {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 1rem;
}

/* Code blocks */
pre {
    background: #1e1e1e;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    overflow-x: auto;
    color: #4fc3f7;
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.95rem;
    margin: 0.5rem 0;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* Footer */
footer {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    z-index: 1000;
}

footer a {
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid transparent;  /* invisible border initially */
    border-radius: 6px;
    transition: border 0.2s ease, background 0.2s ease;
}

footer a:hover {
    border: 1px solid #4fc3f7;   /* nice Wolf blue */
    background: rgba(79,195,247,0.1);
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-btn {
        width: 80%;
        justify-content: center;
    }
}
