/*
Theme Name: Bisonte CrossFit Landing
Theme URI: https://bisontecrossfit.es
Author: Nantec - Desarrollo Web Santander
Author URI: https://nantec.es
Description: Landing page minimalista y potente para Bisonte CrossFit. Muestra enlaces a las diferentes plataformas del box con un diseño oscuro, moderno y atlético.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bisonte-landing
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --color-bg: #0a0a0a;
    --color-bg-card: #111111;
    --color-bg-card-hover: #161616;
    --color-accent: #c8ff00;
    --color-accent-dim: rgba(200, 255, 0, 0.15);
    --color-text: #f0f0f0;
    --color-text-muted: #888888;
    --color-border: #2a2a2a;
    --color-disabled: #555555;
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Barlow', sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --card-radius: 18px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.bg-gradient {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 255, 0, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(200, 255, 0, 0.03) 0%, transparent 50%);
}

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    padding: 48px 24px 0;
}

.site-content {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%;
}

/* ============================================
   HEADER / BRAND
   ============================================ */
.site-brand {
    text-align: center; margin-bottom: 52px;
    animation: fadeInDown 0.8s var(--transition-smooth) both;
}

.site-brand__logo {
    max-width: 220px; margin: 0 auto 20px;
    filter: brightness(1.1); transition: filter 0.3s ease;
}
.site-brand__logo:hover { filter: brightness(1.3); }

.site-brand__name {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; line-height: 1.1;
}
.site-brand__name span { color: var(--color-accent); }

.site-brand__tagline {
    font-family: var(--font-body); font-size: 0.95rem;
    font-weight: 300; letter-spacing: 0.25em;
    text-transform: uppercase; color: var(--color-text-muted);
    margin-top: 12px;
}

/* ============================================
   LINK CARDS - SINGLE COLUMN
   ============================================ */
.links-grid {
    display: flex; flex-direction: column;
    gap: 18px; width: 100%; max-width: 620px;
}

/* ============================================
   INDIVIDUAL CARD
   ============================================ */
.link-card {
    position: relative; display: flex; align-items: center;
    padding: 0; border-radius: var(--card-radius);
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    overflow: hidden; cursor: pointer; min-height: 180px;
    transition: transform 0.45s var(--transition-smooth),
                border-color 0.4s ease, background-color 0.4s ease,
                box-shadow 0.4s ease;
}

.link-card:nth-child(1) { animation: fadeInUp 0.6s 0.15s var(--transition-smooth) both; }
.link-card:nth-child(2) { animation: fadeInUp 0.6s 0.25s var(--transition-smooth) both; }
.link-card:nth-child(3) { animation: fadeInUp 0.6s 0.35s var(--transition-smooth) both; }
.link-card:nth-child(4) { animation: fadeInUp 0.6s 0.45s var(--transition-smooth) both; }

/* Background image */
.link-card__bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.25;
    transition: opacity 0.5s ease, transform 0.8s var(--transition-smooth);
    z-index: 0;
}

.link-card:hover .link-card__bg { opacity: 0.4; transform: scale(1.06); }

.link-card__bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg,
        rgba(10,10,10,0.92) 0%,
        rgba(10,10,10,0.7) 40%,
        rgba(10,10,10,0.3) 100%);
    z-index: 1;
}

/* Card content */
.link-card__content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: 10px;
    padding: 36px 32px; width: 100%;
}

/* Icon */
.link-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--color-accent-dim);
    border: 1px solid rgba(200, 255, 0, 0.2);
    transition: transform 0.4s var(--transition-smooth), background 0.4s ease;
    flex-shrink: 0;
}

.link-card__icon svg {
    width: 24px; height: 24px;
    stroke: var(--color-accent); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.link-card__icon img { width: 36px; height: 36px; object-fit: contain; }

.link-card:hover .link-card__icon {
    transform: translateY(-3px);
    background: rgba(200, 255, 0, 0.22);
}

/* Text */
.link-card__title {
    font-family: var(--font-display); font-size: 1.45rem;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; line-height: 1.2;
    transition: color 0.3s ease;
}

.link-card__subtitle {
    font-size: 0.85rem; font-weight: 300;
    letter-spacing: 0.04em; color: var(--color-text-muted);
    transition: color 0.3s ease;
}

/* Hover */
.link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 255, 0, 0.3);
    background: var(--color-bg-card-hover);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(200,255,0,0.06);
}
.link-card:hover .link-card__title { color: var(--color-accent); }
.link-card:hover .link-card__subtitle { color: var(--color-text); }
.link-card:active { transform: translateY(-2px); transition-duration: 0.1s; }

/* Arrow */
.link-card__arrow {
    position: absolute; top: 18px; right: 18px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(200, 255, 0, 0.08);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translate(-6px, 6px);
    transition: opacity 0.3s ease, transform 0.3s var(--transition-smooth);
    z-index: 2;
}
.link-card__arrow svg {
    width: 14px; height: 14px; stroke: var(--color-accent);
    fill: none; stroke-width: 2.5;
}
.link-card:hover .link-card__arrow { opacity: 1; transform: translate(0, 0); }

/* Disabled */
.link-card--disabled { cursor: default; opacity: 0.5; }
.link-card--disabled:hover {
    transform: none; border-color: var(--color-border);
    background: var(--color-bg-card); box-shadow: none;
}
.link-card--disabled:hover .link-card__title { color: var(--color-text); }
.link-card--disabled:hover .link-card__icon { transform: none; background: var(--color-accent-dim); }
.link-card--disabled:hover .link-card__bg { opacity: 0.25; transform: none; }

.link-card__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text-muted); width: fit-content;
}
.link-card__badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-disabled);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    width: 100%; margin-top: 64px;
    padding: 40px 24px 32px;
    border-top: 1px solid var(--color-border);
    animation: fadeInUp 0.6s 0.6s var(--transition-smooth) both;
}

.site-footer__inner {
    max-width: 620px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 24px;
}

.site-footer__credit {
    font-size: 0.8rem; color: var(--color-text-muted);
    letter-spacing: 0.03em; text-align: center; line-height: 1.6;
}
.site-footer__credit a {
    color: var(--color-accent); transition: opacity 0.3s ease; font-weight: 500;
}
.site-footer__credit a:hover { opacity: 0.7; }

.site-footer__nav-title {
    font-family: var(--font-display); font-size: 0.72rem;
    font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.15em; color: var(--color-text-muted);
    margin-bottom: 12px; text-align: center;
}

.site-footer__nav {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px 24px; list-style: none;
}

.site-footer__nav a {
    font-size: 0.8rem; color: var(--color-text-muted);
    letter-spacing: 0.02em; transition: color 0.3s ease; padding: 4px 0;
}
.site-footer__nav a:hover { color: var(--color-accent); }

.site-footer__copy {
    font-size: 0.72rem; color: #555;
    letter-spacing: 0.04em; text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .links-grid { gap: 14px; }
    .link-card { min-height: 160px; }
    .link-card__content { padding: 28px 24px; }
    .link-card__title { font-size: 1.25rem; }
    .site-brand { margin-bottom: 36px; }
    .site-brand__name { letter-spacing: 0.08em; }
    .site-wrapper { padding: 32px 16px 0; }
    .site-footer { margin-top: 48px; padding: 32px 16px 24px; }
    .site-footer__nav { flex-direction: column; align-items: center; gap: 6px; }
}

/* WordPress admin bar */
.admin-bar .site-wrapper { min-height: calc(100vh - 32px); }
@media (max-width: 782px) {
    .admin-bar .site-wrapper { min-height: calc(100vh - 46px); }
}
