/* pages/static/pages/css/style.css */

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    overflow: hidden;
}

.main-container {
    height: 100vh;
    width: 100vw;
    /* Use your new background image */
    background-image: url('../images/iegen-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Crucial for positioning child elements absolutely */
    /* Flexbox for overall structure if needed, but logo and nav are absolute */
    display: flex; /* Still useful for aligning bottom-nav if it wasn't full width */
    flex-direction: column;
    justify-content: flex-end; /* Aligns flex items (like bottom-nav if not absolute) to bottom */
    align-items: center;
}

/* Remove styles for .logo-container and .logo-text as they are gone */
/* .logo-container { ... } */
/* .logo-text { ... } */

.logo-image {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);

    /* === ADJUST THESE LINES FOR SIZE === */
    max-width: 20vw; /* << Try this value, or e.g., 150px, 250px, etc. */
    width: auto;    /* This will ensure the image scales proportionally */
    height: auto;   /* This will ensure the image scales proportionally */
    /* You can remove max-height if max-width and auto height give desired results */
    /* max-height: 40vh; */ /* Remove or comment out if not needed */
    /* === END ADJUST === */

    /* Optional: Add a subtle shadow if needed */
    /* filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.5)); */
}

.bottom-nav {
    position: absolute; /* Keep it at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0 50px 0;
    box-sizing: border-box;
}

.nav-item {
    /* === ADJUST THESE LINES FOR TRANSPARENCY === */
    background-color: transparent; /* Make background fully transparent */
    border: none; /* Remove the border */
    /* background-color: rgba(30, 30, 30, 0.5); /* OLD */
    /* border: 1px solid rgba(255, 255, 255, 0.2); /* OLD */
    /* === END ADJUST === */

    padding: 20px 25px; /* Padding might still be useful for spacing */
    width: 250px;
    text-decoration: none;
    color: #7b7b7b; /* Current text color for description */
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out; /* Added color transition */
    text-align: center; /* Optional: center text if you prefer */
}

.nav-item:hover {
    transform: translateY(-5px); /* Keep this nice lift effect */

    /* === ADJUST HOVER EFFECT FOR TRANSPARENCY === */
    /* Option 1: No background change on hover */
    /* background-color: transparent; */

    /* Option 2: Very subtle transparent highlight on hover */
    background-color: rgba(255, 255, 255, 0.05); /* Slight white glow */
    /* color: #ffffff; /* Optional: make text slightly brighter on hover */
    /* background-color: rgba(50, 50, 50, 0.7); /* OLD */
    /* border-color: rgba(255, 255, 255, 0.4); /* OLD - remove if border is removed */
    /* === END ADJUST === */
}

.nav-item .nav-title-arrow {
    display: flex; /* This makes the <h2> and <span> arrange in a row */
    align-items: center; /* This vertically aligns them if their heights differ */

    /* Option 1: Title on the left, Arrow on the right (like the Next.js example) */
    justify-content: space-between; /* Distributes space between items */

    /* Option 2: Title and Arrow close together at the start */
    /* If you prefer this, uncomment the next line and comment out 'space-between' */
    /* justify-content: flex-start; */
    /* gap: 8px; */ /* Adds a small space between title and arrow if using flex-start */

    margin-bottom: 8px; /* Space below the title/arrow line, before the description */
}

/* Ensure your <h2> and <span> styles don't interfere */
.nav-item h2 {
    margin: 0; /* Removes default h2 margin which might cause issues */
    font-size: 1.5rem;
    font-weight: 500;
    color: #000000;
}

.nav-item .arrow {
    font-size: 1.5rem; /* Or adjust to match h2 if needed */
    color: #000000;
    transition: transform 0.2s ease-in-out;
    /* margin-left: 8px; */ /* Alternative to 'gap' if using justify-content: flex-start */
}

.nav-item:hover .arrow {
    transform: translateX(5px);
}

.nav-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

body.create-page-body { /* You'd add class="create-page-body" to <body> in create_page.html if needed */
    background-color: #f4f7f6; /* A light background for the hub page */
    color: #333;
    overflow-y: auto; /* Allow scrolling if content is long */
}

.create-hub-container {
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.hub-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.hub-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 20px auto; /* Center the paragraph */
    line-height: 1.6;
}

.back-home-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.back-home-link:hover {
    background-color: #2980b9;
}

/* Grid for Workshop Cards */
.workshop-grid {
    display: grid;
    /*
       Creates responsive columns:
       - auto-fill: as many columns as fit
       - minmax(250px, 1fr): each column is at least 250px wide,
         and can grow to take equal share of extra space (1fr)
    */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px; /* Space between cards */
}

.workshop-card {
    position: relative; /* Needed for positioning the action buttons */
    /* ... keep all your existing .workshop-card styles ... */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    min-height: 200px;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-main-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes the link area fill the card */
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out;
}

.workshop-card:hover .card-actions {
    opacity: 1; /* Show on hover */
}

.action-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 50%; /* Makes them circular */
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.action-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.action-btn .fas {
    font-size: 14px;
}


/* --- Modal Styles --- */
.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    color: #333;
    padding: 25px 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-content p {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modal-btn.confirm {
    background-color: #3498db;
    color: white;
}

.modal-btn.confirm:hover {
    background-color: #2980b9;
}

.modal-btn.cancel {
    background-color: #e0e0e0;
    color: #333;
}

.modal-btn.cancel:hover {
    background-color: #d0d0d0;
}

/* Special "Add New" Card */
.add-new-card {
    justify-content: center; /* Center content horizontally */
    align-items: center;   /* Center content vertically */
    text-align: center;
    border: 2px dashed #bdc3c7; /* Dashed border to look different */
    background-color: #f8f9fa;
    color: #7f8c8d;
}

.add-new-card:hover {
    border-color: #3498db;
    color: #3498db;
    background-color: #eef5fb;
}

.add-new-card .plus-symbol {
    font-size: 4rem; /* Large plus symbol */
    font-weight: 200;
    line-height: 1; /* Adjust line height for plus symbol */
    margin-bottom: 10px;
}

.add-new-card .card-title {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Styles for Existing Workshop Cards */
.existing-workshop-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.existing-workshop-card .card-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    flex-grow: 1; /* Allows description to take up available space, pushing date down */
    margin-bottom: 15px;
}

.existing-workshop-card .card-last-edited {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: auto; /* Pushes to the bottom if card-description doesn't fill space */
    align-self: flex-start; /* Aligns to the start of the flex item (card) */
}

/* Optional: Message for when no workshops exist (if you implement this) */
.no-workshops-message {
    grid-column: 1 / -1; /* Span all columns if grid is empty */
    text-align: center;
    padding: 40px;
    color: #777;
    font-size: 1.1rem;
}
