/* style.css */

/* Disable default margins and padding */
body {
    margin: 0;
    padding: 0;
}

/* Structural elements share theme variables */
body,
header,
footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.28s ease,
                color 0.28s ease,
                filter 0.28s ease;
}

/* Link styles */
a {
    color: var(--link-color); 
    text-decoration: underline;
}

a:hover,
a:focus {
    color: var(--link-hover-color); /* change color on hover/focus */
    text-decoration: none; /* removes underline on hover */
}

/* Dropdown menus */
.dropdown-content {
    background-color: var(--dropdown-bg);
    display: none;              /* hidden by default, shown on hover */
    position: absolute;         /* position relative to parent */
    top: 100%;                  /* appear below parent */
    left: 0;
    min-width: 200px;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);      /* subtle shadow for depth */
    z-index: 1;                                     /* ensure it appears above other content */ 
    list-style: none;                               /* remove bullets */
    padding: 0;
    margin: 0;
    flex-direction: column;                         /* stack items vertically */
}

/* Links inside dropdown */
.dropdown-content li a {
    padding: 0.5rem 1rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    display: block;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/*==============
==== HEADER ====
==============*/

header {
    margin-top: 10px;
    padding: 0.5rem 1rem;
    box-shadow: none;           /*0 1px 2px rgba(0,0,0,0.02); /* barely noticeable */
    position: sticky;           /* sticky header: stays at the top when scrolling */
    top: 0;
    z-index: 1000;              /* ensure header is above other content */
    background: transparent;    /* important for sticky header */
}

.header-inner {
    display: flex;              /* horizontal layout for logo + menu */
    align-items: center;        /* vertically center logo + menu */
    gap: 2rem;                  /* minimum space between items in the header */
}

.logo-link{
    margin-left:2vw;            /* 2% of viewport width */ 
    display:flex;
    align-items: center;
}

.logo {
    height: 100px;                       /* adjusted to logo size */
    width: auto;
    transition: opacity 0.28s ease;      /* smooth fade on theme change */
}

/* Nav menu horizontal layout */
.header-menu {
    list-style: none;               /* remove bullets */
    display: flex;                  /* horizontal layout */
    gap: 1rem;                      /* spacing between menu items */
    padding: 0;
    margin: 0;
    transform: translateY(15px);    /* slight downward shift for better alignment with logo */
}

.header-menu li {
    position: relative;         /* needed for dropdown positioning */
}

/* Top-level links and dropdown parent */
.header-menu li a,
.header-menu li span {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    display: block;                 /* ensures clickable area */
    transition: all 0.2s ease;      /* smooth hover animation */
}

/* Hover effect for top-level links and Movies */
.header-menu li a:hover,
.header-menu li span:hover {
    /*color: #007BFF; /* change color on hover */
    text-decoration: underline;  /* underline on hover */
    /*background-color: #eee; /* subtle highlight */
    /*border-radius: 4px;*/
}

/* Highlight the current page in nav */
.header-menu li a.active,
.header-menu li span.active {
    /*color: #007BFF; /* change color on hover */
    text-decoration: underline;  /* underline on hover */
    /*background-color: #eee; /* subtle highlight */
    /*border-radius: 4px;*/
}

/* Theme switcher styling */
.theme-switcher {
    margin-left: auto;      /* push to right */
    display: flex;
}

/* Theme switcher effects */
#headerFlag g {
    cursor: pointer;
    transition: transform 0.22s ease, filter 0.22s ease;
    transform-origin: center;
}

#headerFlag g:hover {
    filter: url(#activeGlow);
    transform: scale(1.02);
}

#headerFlag g.active {
    filter: url(#luxGlow);
    transform: scale(1.015);
    transition: transform 0.25s cubic-bezier(.25,.8,.25,1),
                filter 0.25s ease;
}

#regionGreen.active {
    filter: url(#activeGlow);
    transform: none !important;
}

/* SOCIAL AND EMAIL CONTAINER */
.header-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    width: auto;         
    height: auto;        
    margin-right: 2vw;      /* 2% of viewport width */
}

/* Style for each icon link */
.header-social .social-link img {
    width: 20px;
    height: 20px;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover effect */
.header-social .social-link:hover img {
    transform: scale(1.03);     /* slight zoom on hover */
    opacity: 0.8;               /* subtle fade on hover */
}

/*============
==== MAIN ====
============*/

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 84vh; /* full viewport height to allow footer to stick to bottom */
}

.main-content {
    flex: 1; /* takes all available space pushing footer to bottom */
}

/*==============
==== FOOTER ====
==============*/

.site-footer {
    padding: 15px 30px;
    font-size: 14px;
    margin-top: auto;  /* push footer to bottom if content is short */
}

.site-footer a {
    color: var(--secondary-text-color); /* links in footer */
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;  /* left & right alignment */
    align-items: center;
    flex-wrap: wrap;                 /* responsive wrap */
}

.footer-right ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;        /* space between links */
}

.footer-right a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--secondary-text-color);      /* subtle hover effect */
}


/*==============
==== FONTS ====
==============*/

/* Regular font, used for body text and nav */
@font-face {
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-Book.otf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-Medium.otf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-MediumItalic.otf") format("truetype");
    font-weight: 500;
    font-style: italic;
}

/* Bolder font, used for titles in the header */
@font-face {
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-Black.otf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-BlackItalic.otf") format("truetype");
    font-weight: 600;
    font-style: italic;
}

@font-face{
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-SemiBold.otf") format("truetype");
    font-weight: 650;
    font-style: normal;
}

@font-face{
    font-family: "Suisse Intl";
    src: url("/static/fonts/SuisseIntl/SuisseIntl-Bold.otf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

/* Set body font */
body {
    font-family: "Suisse Intl", sans-serif; /* apply custom font */
    font-weight: 400; /* normal weight for body text */
}


header nav,
h1, h2, h3 {
    font-family: "Suisse Intl", sans-serif;
    font-weight: 600;
}
