/* 
   BassAtlas: EDM Festival Travel Guide
   External CSS Stylesheet
*/

/* CSS Variables for theming */
:root {
    --bg-dark: #0a0a1a;
    --bg-card: #12122a;
    --bg-header: #0d0d20;
    --text-primary: #f0f0f5;
    --text-secondary: #b0b0c5;
    --accent-cyan: #00e5ff;
    --accent-magenta: #ff00aa;
    --accent-purple: #a855f7;
    --accent-yellow: #ffd700;
    --border-color: #2a2a4a;
    --gradient-glow: linear-gradient(135deg, #00e5ff 0%, #ff00aa 50%, #a855f7 100%);
}

/* 
   BODY STYLES
   Background color, text color, font family
*/
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: Verdana, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 
   WRAPPER / CONTENT CONTAINER
   Keep content from browser edges
*/
.wrapper {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER STYLES */
header {
    background-color: var(--bg-header);
    border-bottom: 2px solid var(--accent-cyan);
    padding: 15px 0;
    text-align: center;
}

.header-content {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.site-title {
    color: var(--accent-cyan);
    font-family: Verdana, Arial, sans-serif;
    font-size: 2.4rem;
    text-align: center;
    margin: 0 0 5px 0;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.site-tagline {
    color: var(--accent-magenta);
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 15px 0;
}

/* 
   NAVIGATION STYLES
   Centered navigation with links to all pages
*/
nav {
    margin: 15px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav li {
    display: inline-block;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

nav a.active {
    background-color: var(--accent-magenta);
    color: var(--bg-dark);
    border-color: var(--accent-magenta);
}

/* 
   H1 HEADING STYLE
   Color, font family, center alignment, font size
*/
h1 {
    color: var(--accent-cyan);
    font-family: Verdana, Arial, sans-serif;
    text-align: center;
    font-size: 2.2rem;
    margin: 30px 0 20px 0;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* 
   H2 HEADING STYLE
   Color, font family, center alignment, font size
*/
h2 {
    color: var(--accent-magenta);
    font-family: Verdana, Arial, sans-serif;
    text-align: center;
    font-size: 1.6rem;
    margin: 25px 0 15px 0;
}

/* H3 Heading Style */
h3 {
    color: var(--accent-purple);
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
}

/* 
   PARAGRAPH STYLE
   Color, font-family, font-size, margin
*/
p {
    color: var(--text-primary);
    font-family: Verdana, Arial, sans-serif;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

/* 
   ID ATTRIBUTE EXAMPLE
   #fun-fact - styling for the fact strip
*/
#fun-fact {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-magenta));
    color: var(--bg-dark);
    text-align: center;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 0.95rem;
    margin: 0;
}

#fun-fact span {
    color: var(--accent-yellow);
}

/* .highlight to emphasize text */
.highlight {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* .card - content cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

/* .card with hover effect */
.card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

/* MAIN CONTENT AREA */
main {
    min-height: 60vh;
}

/* HERO SECTION */
.hero {
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(255, 0, 170, 0.2));
    border-radius: 15px;
    margin: 20px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ABOUT SECTION WITH IMAGE FLOAT */
.about-section {
    overflow: hidden;
    padding: 20px 0;
}

/* Float for text-wrap with padding */
.float-left {
    float: left;
    max-width: 200px;
    margin: 0 20px 15px 0;
    border-radius: 10px;
    border: 3px solid var(--accent-magenta);
}

/* Clearfix for floats */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* BUTTON STYLES */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-glow);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin: 15px 0;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.6);
}

/* CONTACT SECTION WITH FLEXBOX */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 0;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.contact-map {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
}

.contact-map img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/*LINKS */
a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-magenta);
    text-decoration: underline;
}

/* Mailto link */
a[href^="mailto"] {
    color: var(--accent-yellow);
}

a[href^="mailto"]:hover {
    color: var(--accent-cyan);
}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;
}

/* Hyperlinked images */
a img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Festival/destination card images */
.card-image {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
}

/* HORIZONTAL RULE */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), var(--accent-purple), transparent);
    margin: 30px 0;
}

/* LISTS -ORDERED AND UNORDERED */
ul, ol {
    color: var(--text-primary);
    margin: 15px 0 15px 25px;
    padding: 0;
}

ul li, ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* Styled list for features */
.feature-list {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
}

.feature-list li::before {
    content: "🪩";
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-magenta));
    color: var(--bg-dark);
    font-weight: bold;
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(0, 229, 255, 0.1);
}

/* FESTIVAL CARDS */
.festival-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    transition: all 0.3s ease;
}

.festival-card:hover {
    border-color: var(--accent-magenta);
    box-shadow: 0 5px 30px rgba(255, 0, 170, 0.2);
}

.festival-card h3 {
    color: var(--accent-cyan);
    margin-top: 0;
    font-size: 1.5rem;
}

.festival-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.festival-meta span {
    color: var(--accent-yellow);
}

/* DESTINATION CARDS */
.destination-card {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-purple);
    padding: 20px 25px;
    margin: 20px 0;
}

.destination-card h3 {
    color: var(--accent-cyan);
    margin-top: 0;
}

/* TIPS SECTION */
.tip-category {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    border-top: 3px solid var(--accent-cyan);
}

/* BassAtlas Logo in Header */
.ba-logo {
    width: 100px;
    height: auto;
    border-radius: 1px;
}

.tip-category h3 {
    color: var(--accent-magenta);
    margin-top: 0;
}

.product-link {
    display: inline-block;
    background-color: rgba(168, 85, 247, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: var(--accent-purple);
    color: var(--bg-dark);
}

/* FOOTER STYLES */
footer {
    background-color: var(--bg-header);
    border-top: 2px solid var(--accent-magenta);
    text-align: center;
    padding: 25px 20px;
    margin-top: 40px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 5px 0;
}

footer a {
    color: var(--accent-cyan);
}

/* W3C Validator badge */
footer img {
    border: 0;
    width: 88px;
    height: 31px;
    margin-top: 10px;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
    }

    nav a {
        display: block;
        padding: 10px 15px;
    }

    .contact-section {
        flex-direction: column;
    }

    .float-left {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

/* FIGURE AND FIGCAPTION STYLES */
figure.festival-figure {
    margin: 15px 0;
    text-align: center;
}

figure.festival-figure.float-left {
    float: left;
    max-width: 200px;
    margin: 0 20px 15px 0;
    text-align: center;
}

figcaption {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 8px;
}
