/*
Theme Name: Páholy Iskolaszövetkezet
Theme URI: https://paholy.com
Author: Converted from React
Author URI: https://paholy.com
Description: A modern WordPress theme for Páholy Iskolaszövetkezet, converted from React.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paholy
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 256px;
    height: 100vh;
    z-index: 50;
    margin: 12px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.main-sidebar.mobile-open {
    transform: translateX(0);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sidebar-logo {
    padding: 24px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.2);
}

.sidebar-logo h2 {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.sidebar-logo p {
    font-size: 14px;
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 24px;
    width: 100%;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav button {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
}

.sidebar-nav button:hover {
    background-color: rgba(239, 246, 255, 0.1);
    color: #2563eb;
}

.sidebar-nav button.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.sidebar-nav button svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 50;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s;
    display: block;
}

.mobile-menu-btn:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

.mobile-overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    min-height: 100vh;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.content-inner {
    width: 100%;
    max-width: 1152px;
}

/* Section Animations */
.section-content {
    transition: all 0.3s;
    padding: 16px;
}

.section-content.fade-out {
    opacity: 0;
    transform: translateX(16px);
}

.section-content.fade-in {
    opacity: 1;
    transform: translateX(0);
}

/* Cards */
.card-grid {
    display: grid;
    gap: 24px;
    max-width: 896px;
    margin: 0 auto;
}

.card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.card h4 {
    font-weight: 600;
    color: white;
}

/* About Section */
.about-header {
    text-align: center;
    margin-bottom: 32px;
}

.about-logo {
    width: 128px;
    height: 128px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.about-contact {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.about-contact-item {
    display: flex;
    align-items: center;
    color: white;
}

.about-contact-item svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.about-content {
    max-width: 768px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
}

.about-content p {
    font-size: 18px;
    color: white;
    line-height: 1.75;
    margin-bottom: 24px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Section Headers */
.section-header {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin-bottom: 32px;
    text-align: center;
}

/* Contact Cards */
.contact-intro {
    font-size: 18px;
    color: white;
    margin-bottom: 32px;
    text-align: center;
}

.contact-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.contact-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.contact-card svg {
    width: 32px;
    height: 32px;
    color: #3b82f6;
    margin: 0 auto 12px;
    display: block;
    transition: transform 0.3s;
}

.contact-card:hover svg {
    transform: scale(1.1);
}

.contact-card h3 {
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    text-align: center;
}

.contact-card p {
    color: white;
    font-size: 14px;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    .card-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .main-sidebar {
        transform: translateX(0);
    }
    
    .content-wrapper {
        padding: 48px;
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 280px;
    }
}

/* Hidden by default */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
}
