/* style.css - Universal Styles for HOCS */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

@media (max-width: 767px) {
  #adsInMobile {
    display: none !important;
  }
}


body::selection {
      background: var(--gray-60);
      color: var(--white);
    }

body::-moz-selection {
      background: var(--gray-60);
      color: var(--white);
    }

/* Frank Ruhl Libre font-face declarations */
@font-face {
    font-family: 'Frank Ruhl Libre';
    src: url('./assets/fonts/static/FrankRuhlLibre-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Frank Ruhl Libre';
    src: url('./assets/fonts/static/FrankRuhlLibre-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Frank Ruhl Libre';
    src: url('./assets/fonts/static/FrankRuhlLibre-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Frank Ruhl Libre';
    src: url('./assets/fonts/static/FrankRuhlLibre-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Color variables */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-10: #1a1a1a;
    --gray-20: #333333;
    --gray-30: #4d4d4d;
    --gray-40: #666666;
    --gray-50: #808080;
    --gray-60: #999999;
    --gray-70: #b3b3b3;
    --gray-80: #cccccc;
    --gray-90: #e6e6e6;
    --gray-95: #f2f2f2;
}

/* Base styles */
body {
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-20);
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--gray-20);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--black);
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Navigation */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-90);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.logo span {
    font-weight: 300;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--gray-80);
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    color: var(--gray-60);
    font-size: 0.9rem;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Add to existing style.css */

/* Logo styles */
.logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

.footer-logo {
    height: 33px;
    width: auto;
    margin-bottom: 0.5rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Search functionality */
.search-toggle {
    display: flex;
    align-items: center;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-20);
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--black);
}

.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--white);
    border: 1px solid var(--gray-90);
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-form-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-80);
    border-radius: 2px;
    font-family: 'Frank Ruhl Libre', serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--gray-40);
}

.search-submit {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-family: 'Frank Ruhl Libre', serif;
    cursor: pointer;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Updated footer styles */
.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

.footer-brand {
    grid-column: span 1;
}

.footer-tagline {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-description {
    color: var(--gray-70);
    font-size: 0.9rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-categories ul {
    list-style: none;
}

.footer-links li,
.footer-categories li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-categories a {
    color: var(--gray-70);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-categories a:hover {
    color: var(--white);
}

.footer-newsletter p {
    color: var(--gray-70);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--gray-60);
    background: var(--gray-10);
    color: var(--white);
    border-radius: 2px;
    font-family: 'Frank Ruhl Libre', serif;
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--gray-40);
}

.footer-newsletter-form button {
    background-color: var(--white);
    color: var(--black);
    border: none;
    width: 40px;
    border-radius: 2px;
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-newsletter-form button:hover {
    background-color: var(--gray-90);
}

.footer-bottom {
    border-top: 1px solid var(--gray-20);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.footer-bottom-nav a {
    color: var(--gray-60);
    font-size: 0.9rem;
}

.footer-bottom-nav a:hover {
    color: var(--white);
}



/* Responsive styles for header/footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-90);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form-container {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 1rem 0 0 0;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px;
    }
}