/*
 Theme Name:   Socks Without Partners (GeneratePress Child)
 Description:  Custom styling and templates for the Lonely Sock project.
 Author:       Antigravity
 Template:     generatepress
 Version:      2.0.0
*/

/* ==========================================
   GLOBAL VARIABLES & TYPOGRAPHY
========================================== */
:root {
    /* Vibrant Palette */
    --swp-primary: #FF4B2B;
    /* Punchy Red-Orange */
    --swp-secondary: #FF416C;
    /* Vibrant Pink */
    --swp-accent: #00F2FE;
    /* Electric Cyan */

    /* Backgrounds & Surfaces */
    --swp-bg: #0F172A;
    /* Slate 900 - Deep Dark Blue */
    --swp-surface: #1E293B;
    /* Slate 800 */
    --swp-surface-glass: rgba(30, 41, 59, 0.7);
    /* Semi-transparent */

    /* Text Colors */
    --swp-text-main: #F8FAFC;
    /* Slate 50 */
    --swp-text-muted: #94A3B8;
    /* Slate 400 */

    /* Borders & UI */
    --swp-border: rgba(255, 255, 255, 0.1);
    --swp-border-hover: rgba(255, 255, 255, 0.25);

    /* Gradients */
    --swp-gradient: linear-gradient(135deg, var(--swp-primary) 0%, var(--swp-secondary) 100%);
    --swp-gradient-glow: 0 0 20px rgba(255, 75, 43, 0.4);
}

body {
    background-color: var(--swp-bg);
    color: var(--swp-text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--swp-text-main);
    letter-spacing: -0.02em;
}

/* ==========================================
   BUTTONS & LINKS
========================================== */
a {
    color: var(--swp-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.button,
.wp-block-button__link,
input[type="submit"] {
    background: var(--swp-gradient) !important;
    color: #fff !important;
    border-radius: 50px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 12px 28px !important;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    position: relative;
    overflow: hidden;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 65, 108, 0.5) !important;
}

/* ==========================================
   GLASSMORPHISM GRID LAYOUTS (ARCHIVES)
========================================== */
.swp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.swp-card {
    background: var(--swp-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--swp-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.swp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

.swp-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--swp-border-hover);
}

.swp-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--swp-border);
    transition: transform 0.6s ease;
}

.swp-card:hover .swp-card-image {
    transform: scale(1.05);
}

.swp-card-image-wrapper {
    overflow: hidden;
}

.swp-card-content {
    padding: 2rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, 1) 50%);
    margin-top: -40px;
    padding-top: 50px;
}

.swp-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.swp-card-title a {
    color: #fff;
    text-decoration: none;
}

.swp-card-title a:hover {
    color: var(--swp-accent);
    text-shadow: none;
}

.swp-meta {
    font-size: 0.85rem;
    color: var(--swp-text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 500;
}

.swp-meta-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--swp-text-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   WP ULIKE CUSTOMIZATIONS (NEON EFFECTS)
========================================== */
.wpulike {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--swp-border);
}

.wpulike-text .wp_ulike_btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif !important;
    padding: 10px 24px !important;
    transition: all 0.3s ease !important;
}

.wpulike-text .wp_ulike_btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
}

.wpulike-text .wp_ulike_btn.wp_ulike_btn_is_active {
    background: var(--swp-gradient) !important;
    border: none !important;
    box-shadow: var(--swp-gradient-glow) !important;
    color: #fff !important;
}

/* ==========================================
   FORM OVERHAULS (UGC)
========================================== */
.swp-form-container {
    background: var(--swp-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--swp-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.swp-form-group {
    margin-bottom: 2rem;
}

.swp-form-group label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.swp-form-group input[type="text"],
.swp-form-group input[type="email"],
.swp-form-group textarea,
.swp-form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.swp-form-group input:focus,
.swp-form-group textarea:focus,
.swp-form-group select:focus {
    outline: none;
    border-color: var(--swp-accent);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.swp-form-group input[type="file"] {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: var(--swp-text-muted);
    width: 100%;
}

/* ==========================================
   GENERATEPRESS OVERRIDES FOR DARK MODE
========================================== */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--swp-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-title a {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: var(--swp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.main-navigation .main-nav ul li a {
    color: var(--swp-text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-navigation .main-nav ul li[class*="current-menu-"]>a {
    color: var(--swp-accent);
    background: transparent;
}

.main-navigation .main-nav ul li>a:hover {
    color: var(--swp-primary);
    background: transparent;
}

.site-info {
    background: var(--swp-surface);
    color: var(--swp-text-muted);
    border-top: 1px solid var(--swp-border);
    padding: 2rem 0;
}

.inside-article {
    background: transparent;
}

.page-header {
    background: transparent;
    text-align: center;
    padding: 4rem 0 2rem 0;
}

.page-title {
    font-size: 3rem;
    background: var(--swp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================
   HOMEPAGE CUSTOM HERO
========================================== */
.swp-dashboard-hero {
    background: var(--swp-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    margin-bottom: 4rem;
    border: 1px solid var(--swp-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.swp-dashboard-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, rgba(255, 65, 108, 0.05) 30%, transparent 70%);
    pointer-events: none;
}

.swp-dashboard-hero h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.swp-dashboard-hero p {
    font-size: 1.25rem;
    color: var(--swp-text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

/* ==========================================
   SINGLE POST LAYOUTS
========================================== */
.swp-single-profile {
    background: var(--swp-surface-glass);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--swp-border);
    padding: 3rem;
    margin-top: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.swp-single-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.swp-profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .swp-profile-grid {
        grid-template-columns: 1fr;
    }
}