/* === Google Font Import === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* === CSS Variables === */
:root {
    --primary-color: #f23333; /* WordPress Blue */
    --secondary-color: #004b51; /* Contrasting Red/Orange */
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-color: #333;
    --white: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --container-width: 1140px;
    --border-radius: 5px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* === Basic Reset & Defaults === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.8em;
    line-height: 1.2;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

ul {
    list-style-position: inside;
    margin-bottom: 1em;
}

/* === Utility Classes === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

.content-area {
    padding-top: 40px;
    padding-bottom: 40px;
}

.plugin-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
}
.plugin-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* === Header & Navigation === */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px; /* Adjust as needed */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-speed) ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* === Hero Section === */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 15px;
    color: var(--white);
}

.hero p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* === Plugin Grid (Homepage) === */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.plugin-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.plugin-card-logo {
    max-height: 80px;
    margin: 0 auto 15px auto;
}

.plugin-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.plugin-card p {
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* === Plugin Detail Page === */
.plugin-detail-page h1 {
    color: var(--primary-color);
    margin-top: 0; /* Reset margin if needed */
}

.plugin-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--medium-gray);
}

.plugin-logo-large {
    max-height: 100px; /* Adjust as needed */
    flex-shrink: 0; /* Prevent shrinking */
}

.feature-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-columns ul {
    padding-left: 0; /* Remove default padding */
    list-style-position: outside;
    margin-left: 1.2em; /* Add custom margin */
}

.feature-columns li {
    margin-bottom: 0.5em;
}


/* === Screenshot Gallery === */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.screenshot-thumb {
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

/* === Footer === */
.site-footer {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.footer-links a {
    color: var(--dark-gray);
    margin: 0 5px;
}
.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.9rem;
    text-align: right;
}


/* === Modals (Impressum, Datenschutz, Lightbox) === */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
    padding-top: 60px; /* Location of the box */
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid var(--medium-gray);
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Lightbox Specific Styles */
.lightbox {
    background-color: rgba(0, 0, 0, 0.85); /* Darker background */
    padding-top: 20px; /* Reduce padding */
}

.lightbox-close-btn {
     color: var(--white);
     top: 15px;
     right: 35px;
     font-size: 40px;
     opacity: 0.8;
}
.lightbox-close-btn:hover {
    opacity: 1;
}


.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh; /* Limit height based on viewport */
    animation: zoomIn 0.4s;
}

#lightbox-caption {
    margin: 15px auto 0 auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 0.9rem;
}

/* Modal Animations */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}


/* === Responsive Design === */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
     .feature-columns {
        grid-template-columns: 1fr; /* Stack columns */
    }
     .plugin-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .plugin-logo-large {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .site-header .container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
     .main-nav li {
        margin: 5px 10px; /* Adjust spacing */
    }

    .footer-content {
       flex-direction: column;
       text-align: center;
    }
     .copyright {
        text-align: center;
        margin-top: 10px;
    }
     .modal-content {
        width: 90%;
        padding: 20px;
    }

}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    .plugin-grid {
        grid-template-columns: 1fr; /* Single column */
    }
     .hero {
        padding: 40px 0;
    }
     .main-nav li {
        margin: 5px; /* Reduce spacing further */
    }

    .lightbox-content {
        max-width: 95%;
    }
     #lightbox-caption {
        width: 90%;
     }

}
