/* ── FOF CLAN — SHARED STYLES ── */

:root {
    --bg: #0a0e1a;
    --border: rgba(255,255,255,0.06);
    --text: #ffffff;
    --text-2: rgba(255,255,255,0.6);
    --text-3: rgba(255,255,255,0.3);
    --blue: #00d2ff;
    --purple: #7850ff;
    --green: #00ff88;
    --red: #ff4757;
    --orange: #ff6b35;
    --gold: #ffd700;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ── BACKGROUND ── */
.bg-gradient {
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(120, 80, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 210, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 71, 87, 0.08) 0%, transparent 50%);
    z-index: -2;
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--blue), 0 0 20px var(--blue);
    animation: floatParticle 15s linear infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; background: var(--green); box-shadow: 0 0 10px var(--green); }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-delay: 6s; background: var(--green); box-shadow: 0 0 10px var(--green); }
.particle:nth-child(8) { left: 50%; animation-delay: 7s; }
.particle:nth-child(9) { left: 75%; animation-delay: 8s; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.particle:nth-child(10) { left: 90%; animation-delay: 9s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* ── CONTAINER ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-fof {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
}

.logo-divider { color: var(--text-3); font-size: 20px; }

.logo-sub {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.nav-links a.active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--blue);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

/* ── HERO ── */
.hero {
    padding: 140px 20px 80px;
    text-align: center;
    position: relative;
}

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

.clan-emblem {
    font-size: 80px;
    margin-bottom: 20px;
    animation: emblemPulse 3s ease infinite;
    filter: drop-shadow(0 0 30px rgba(255, 71, 87, 0.5));
}

@keyframes emblemPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255, 71, 87, 0.5)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 50px rgba(255, 71, 87, 0.8)); }
}

.clan-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 900;
    background: linear-gradient(135deg, #00d2ff, #7850ff, #ff4757);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    animation: titleShine 4s ease infinite;
    margin-bottom: 8px;
}

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

.clan-meaning {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.clan-tagline {
    color: var(--text-2);
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

/* ── OWNERS ── */
.owners {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.owner-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 20px 28px;
    min-width: 220px;
    transition: all 0.3s ease;
}

.owner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
}

.owner-icon { font-size: 32px; margin-bottom: 8px; }

.owner-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.owner-role {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ── BUTTONS ── */
.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), #0891b2);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* ── SECTION ── */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i { color: var(--blue); }

/* ── GLASS CARD ── */
.glass-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,0.5), transparent);
}

/* ── ABOUT TEXT ── */
.about-text {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong { color: var(--text); font-weight: 700; }

/* ── VALUES ── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.value-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(0,210,255,0.15), rgba(120,80,255,0.15));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--blue);
    margin: 0 auto 12px;
}

.value-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── STATS ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-4px);
    border-color: rgba(0,210,255,0.2);
}

.stat-icon {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #00d2ff, #7850ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* ── TAG PREVIEW ── */
.tag-preview-card { text-align: center; }

.preview-text {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 20px;
}

.preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.preview-tag {
    background: rgba(0,210,255,0.05);
    border: 1px solid rgba(0,210,255,0.2);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.preview-tag:hover {
    background: rgba(0,210,255,0.15);
    transform: translateY(-2px);
}

/* ── RULES PREVIEW ── */
.rules-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.rule-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0,255,136,0.03);
    border: 1px solid rgba(0,255,136,0.1);
    border-radius: 10px;
    font-size: 14px;
}

.rule-preview-item i { color: var(--green); font-size: 18px; }

/* ── PAGE TITLE ── */
.page-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #00d2ff, #7850ff, #ff4757);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 4s ease infinite;
    margin-bottom: 8px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-2);
    font-size: 15px;
    margin-bottom: 32px;
}

/* ── TAG GENERATOR ── */
.generator-card {
    max-width: 700px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.name-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.name-input:focus {
    border-color: rgba(0,210,255,0.4);
    box-shadow: 0 0 30px rgba(0,210,255,0.1);
}

.name-input::placeholder { color: var(--text-3); }

.quick-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.quick-label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-name {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quick-name:hover {
    background: rgba(0,210,255,0.1);
    color: var(--blue);
    border-color: rgba(0,210,255,0.3);
}

/* ── TAGS CONTAINER ── */
.tags-container {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.tags-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-count {
    background: rgba(0,210,255,0.15);
    color: var(--blue);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: auto;
}

.tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(0,210,255,0.05);
    border-color: rgba(0,210,255,0.3);
    transform: translateX(4px);
}

.tag-number {
    width: 24px;
    height: 24px;
    background: rgba(0,210,255,0.1);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.tag-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    word-break: break-word;
}

.tag-copy {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.2);
    color: var(--green);
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-family: inherit;
}

.tag-copy:hover {
    background: rgba(0,255,136,0.2);
    transform: scale(1.1);
}

/* ── STEPS ── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-num {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    padding-top: 6px;
    color: var(--text-2);
    font-size: 14px;
}

/* ── MEMBERS ── */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.member-card {
    text-align: center;
    padding: 24px 20px;
}

.member-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.member-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    word-break: break-word;
}

.member-role {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.role-owner { background: rgba(255,215,0,0.15); color: var(--gold); }
.role-coowner { background: rgba(120,80,255,0.15); color: var(--purple); }
.role-elite { background: rgba(255,71,87,0.15); color: var(--red); }
.role-member { background: rgba(0,210,255,0.15); color: var(--blue); }

.member-joined {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── RULES LIST ── */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rule-number {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.rule-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.rule-desc {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.6;
}

/* ── JOIN PAGE ── */
.requirements, .apply-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0,255,136,0.03);
    border: 1px solid rgba(0,255,136,0.1);
    border-radius: 10px;
    font-size: 14px;
}

.req-item i { color: var(--green); font-size: 16px; }

.apply-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0,210,255,0.03);
    border: 1px solid rgba(0,210,255,0.1);
    border-radius: 10px;
    font-size: 14px;
}

.apply-num {
    width: 24px; height: 24px;
    background: rgba(0,210,255,0.15);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(0,136,204,0.08);
    border: 1px solid rgba(0,136,204,0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(0,136,204,0.15);
    transform: translateY(-2px);
}

.contact-btn i {
    font-size: 24px;
    color: #0088cc;
}

.contact-btn strong { display: block; font-size: 14px; }
.contact-btn small { font-size: 11px; color: var(--text-3); }

/* ── FOOTER ── */
.footer {
    margin-top: 80px;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-3);
    font-size: 12px;
    margin-top: 6px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--blue); }

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    color: var(--text-3);
    font-size: 12px;
}

.footer-motto {
    color: var(--gold);
    margin-top: 4px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    z-index: 9999;
    max-width: 90%;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(0,255,136,0.3); }
.toast.success::before {
    content: '✓';
    color: var(--green);
    margin-right: 8px;
    font-weight: 800;
}

.toast.error { border-color: rgba(255,71,87,0.3); }
.toast.error::before {
    content: '✕';
    color: var(--red);
    margin-right: 8px;
    font-weight: 800;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 66px;
        left: 0; right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.open { transform: translateY(0); }
    
    .nav-links a { width: 100%; text-align: center; padding: 14px; }
    
    .nav-toggle { display: flex; }
    
    .hero { padding: 120px 20px 60px; }
    .owners { flex-direction: column; align-items: center; }
    .owner-card { width: 100%; max-width: 320px; }
    .contact-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 20px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}