/*
Theme Name:  Link Pro
Theme URI:   https://1.clever.ws
Author:      Rob Clever
Author URI:  https://clever.ws
Description: Affiliate splash page directory powered by the Pro Link plugin.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: link-pro
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg:        #0d0d0d;
    --color-surface:   #1a1a1a;
    --color-border:    #2a2a2a;
    --color-accent:    #2e8fdf;
    --color-accent2:   #1a6bbf;
    --color-text:      #e8e8e8;
    --color-muted:     #888;
    --color-heading:   #ffffff;
    --font-main:       'Inter', 'Segoe UI', Arial, sans-serif;
    --radius:          8px;
    --max-width:       1100px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: #fff;
}

/* =============================================
   LAYOUT
   ============================================= */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-accent);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -0.3px;
}

.site-title a {
    color: inherit;
}

.site-tagline {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 1px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--color-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
    background: var(--color-accent);
    color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.site-hero {
    background: linear-gradient( 135deg, #0d0d0d 0%, #0a1a2e 50%, #0d0d0d 100% );
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.site-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.site-hero h1 span {
    color: var(--color-accent);
}

.site-hero p {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 560px;
    margin: 0 auto 32px;
}

.hero-btn {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

.hero-btn:hover {
    background: var(--color-accent2);
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main {
    flex: 1;
    padding: 48px 0;
}

/* =============================================
   PAGE / POST CONTENT
   ============================================= */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-heading);
    margin: 1.5em 0 0.5em;
    line-height: 1.3;
}

.entry-content h2 { font-size: 1.7rem; }
.entry-content h3 { font-size: 1.35rem; }

.entry-content p {
    margin-bottom: 1.2em;
    color: var(--color-text);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2em 1.5em;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--color-surface);
    border-radius: 0 6px 6px 0;
    color: var(--color-muted);
    font-style: italic;
}

.entry-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2em 0;
}

/* =============================================
   CARD GRID — for splash page directory
   ============================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
    gap: 24px;
    margin: 32px 0;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 24px rgba(46, 143, 223, 0.15);
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1a2a3a, #0d1a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-body {
    padding: 18px 20px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 6px;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}

.card-link {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s;
}

.card-link:hover {
    background: var(--color-accent2);
    color: #fff;
}

/* =============================================
   CARD TAGS & META
   ============================================= */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.card-tag {
    background: rgba(46,143,223,0.15);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(46,143,223,0.3);
}

.card-meta {
    margin-bottom: 14px;
}

.card-clicks {
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.section-heading p {
    color: var(--color-muted);
    font-size: 1rem;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: var(--color-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* =============================================
   WIDGETS / SIDEBAR
   ============================================= */
.widget {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

/* =============================================
   GUTENBERG BLOCK OVERRIDES
   ============================================= */
.wp-block-button__link {
    background: var(--color-accent) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.wp-block-button__link:hover {
    background: var(--color-accent2) !important;
}

.wp-block-separator {
    border-color: var(--color-border) !important;
}

.wp-block-quote {
    border-left-color: var(--color-accent) !important;
}

.wp-block-cover {
    border-radius: var(--radius);
    overflow: hidden;
}

/* =============================================
   UTILITIES
   ============================================= */
.text-center { text-align: center; }
.text-muted   { color: var(--color-muted); }
.text-accent  { color: var(--color-accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media ( max-width: 768px ) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        width: 100%;
        display: none;
    }

    .site-nav.open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .site-nav a {
        display: block;
        padding: 10px 14px;
    }

    .site-hero {
        padding: 48px 0 40px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
