/*
Theme Name: Personal Theme
Theme URI: http://example.com/personal-theme
Author: Antigravity
Author URI: http://example.com
Description: A dark, single-page personal portfolio theme with parallax effects.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, portfolio, parallax, one-page
Text Domain: personal-theme
*/

:root {
    /* Fallback variables if JS/Customizer fails */
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #333333;
    --hover-color: #cccccc;
    --sidebar-width: 80px;
    --content-width: 800px;
    --section-padding: 40px;
}

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

html {
    scroll-behavior: smooth;
    margin-top: 0 !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-left: 1px solid #111;
}

.nav-item {
    color: #555;
    margin: 20px 0;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-item:hover {
    color: var(--text-color);
    transform: scale(1.1);
}

.nav-item svg {
    display: block;
}

/* Tooltip for icons */
.tooltip {
    position: absolute;
    right: calc(var(--sidebar-width) - 10px);
    background-color: #111;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    white-space: nowrap;
}

.nav-item:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Site Title Overlay */
.site-title-overlay {
    display: var(--title-display);
    position: absolute;
    top: var(--title-top);
    right: var(--title-right);
    width: var(--title-width);
    font-size: var(--title-size);
    font-family: var(--title-font);
    text-align: var(--title-align);
    z-index: 1001;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Content */
main {
    width: 100%;
    padding-right: var(--sidebar-width);
}

.content {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.parallax-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--section-padding);
    padding-right: calc(var(--section-padding) + var(--sidebar-width) / 5);
    /* visual balance */
    z-index: 1;
}

/* First section (Home) as Full Hero */
#post-home.parallax-section,
.parallax-section:first-of-type {
    padding: 0;
}

#post-home .content,
.parallax-section:first-of-type .content {
    max-width: none;
    width: 100%;
    height: 100vh;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#post-home .hero-image-container,
.parallax-section:first-of-type .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    z-index: -1;
    background-image: var(--hero-image);
    background-size: var(--hero-bg-size);
    background-position: var(--hero-bg-position);
    background-repeat: no-repeat;
}

#post-home .hero-image,
.parallax-section:first-of-type .hero-image {
    display: none;
    /* We use background-image now */
}

/* Typography */
h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.8;
}

a.contact-link {
    color: #fff;
    text-decoration: underline;
    font-size: 1.2rem;
}

/* Hero Scroll Arrow */
.hero-scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    z-index: 10;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-scroll-arrow:hover {
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Floating Elements Container */
#floating-elements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatAnimation infinite linear;
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
    }
}

/* Footer Nav */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-nav a {
    color: #777;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}


/* Responsiveness */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 60px;
        /* Force smaller sidebar on mobile */
    }

    main {
        padding-right: var(--sidebar-width);
    }

    .tooltip {
        display: none;
    }

    h1 {
        font-size: var(--h1-size);
    }

    h2 {
        font-size: calc(var(--h1-size) * 0.8);
    }
}

/* Photo Flip Card */
.flip-card-container {
    background-color: transparent;
    width: var(--card-width, 300px);
    height: var(--card-height, 400px);
    perspective: 1000px;
    margin: 0;
    /* Managed by grid gap */
    border: var(--card-border-width, 1px) var(--card-border-style, solid) var(--card-border-color, rgba(255, 255, 255, 0.2));
    border-radius: var(--card-border-radius, 10px);
    overflow: hidden;
    /* Clips children to the border radius */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform var(--card-speed, 0.6s) cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 20px var(--card-shadow, rgba(0, 0, 0, 0.4));
}

.flip-card-container:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--card-border-radius, 10px);
    overflow: hidden;
}

.flip-card-front {
    background-color: #111;
    color: white;
    display: flex;
    flex-direction: column;
}

.flip-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.flip-card-front-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

/* "Below" Title Layout */
.flip-card-container.title-below .flip-card-front {
    display: flex;
    flex-direction: column;
}

.flip-card-container.title-below .flip-card-image {
    flex: 1;
}

.flip-card-container.title-below .flip-card-front-title {
    position: static;
    background: var(--card-title-bg, #111) !important;
    padding: 15px;
    font-size: 1rem;
}

.flip-card-back {
    background-color: var(--card-back-bg, #222);
    color: var(--card-back-text, #fff);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-card-back h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: inherit !important;
}

.flip-card-back-content {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.flip-card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000 !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s;
}

.flip-card-link:hover {
    transform: scale(1.05);
}

/* Photo Album Grid - Side by Side */
.photo-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-width, 300px), 1fr));
    gap: 30px;
    justify-items: center;
    padding: 20px 0;
    width: 100%;
    min-height: 100px;
}

.band-members-section {
    width: 100%;
    clear: both;
}

@media (max-width: 768px) {
    .photo-album-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Band Tour Table */
/* Band Tour Advanced Styling */
.band-tour-container {
    width: 100%;
    max-width: var(--tour-max-width, 800px);
    margin: 40px auto;
    color: var(--tour-text, #ffffff);
}

/* Common Components */
.tour-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--tour-accent, #ffffff);
    color: var(--tour-accent-text, #000000);
    text-decoration: none;
    border-radius: var(--tour-radius, 5px);
    font-size: 0.9rem;
    font-weight: bold;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s;
}

.tour-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.tour-item-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.5;
}

.tour-item-desc p {
    margin-bottom: 8px;
}

.tour-item-desc *:last-child {
    margin-bottom: 0;
}

/* Table Layout */
.band-tour-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--tour-gap, 5px);
}

.band-tour-table tr {
    background: var(--tour-bg, rgba(255, 255, 255, 0.05));
    transition: background 0.2s;
}

.band-tour-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.band-tour-table tr.row-even {
    background: var(--tour-even-bg, var(--tour-bg));
}

.band-tour-table td {
    padding: var(--tour-padding, 20px);
    vertical-align: middle;
}

.band-tour-table tr td:first-child {
    border-top-left-radius: var(--tour-radius, 5px);
    border-bottom-left-radius: var(--tour-radius, 5px);
}

.band-tour-table tr td:last-child {
    border-top-right-radius: var(--tour-radius, 5px);
    border-bottom-right-radius: var(--tour-radius, 5px);
    text-align: right;
}

.band-tour-table .tour-date {
    font-size: var(--tour-date-size, 16px);
    font-weight: 700;
    width: 150px;
}

.band-tour-table .tour-venue {
    font-size: var(--tour-venue_size, 18px);
    font-weight: 600;
    margin-bottom: 4px;
}

.band-tour-table .tour-city {
    font-size: var(--tour-city-size, 14px);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stacked Layout */
.tour-stacked-list {
    display: flex;
    flex-direction: column;
    gap: var(--tour-gap, 15px);
}

.tour-card {
    background: var(--tour-bg, rgba(255, 255, 255, 0.05));
    padding: var(--tour-padding, 25px);
    border-radius: var(--tour-radius, 10px);
    transition: transform 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.tour-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tour-card .tour-date {
    display: block;
    font-size: var(--tour-date-size, 16px);
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--tour-accent, #fff);
}

.tour-card .tour-venue {
    font-size: var(--tour-venue-size, 20px);
    margin: 5px 0;
}

.tour-card .tour-city {
    font-size: var(--tour-city-size, 14px);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .band-tour-table tr {
        display: flex;
        flex-direction: column;
        padding: var(--tour-padding, 15px);
        gap: 10px;
    }

    .band-tour-table td {
        padding: 0 !important;
        width: 100% !important;
        text-align: left !important;
    }

    .tour-card-main {
        flex-direction: column;
        align-items: flex-start;
    }
}