/*css Reset */
* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    /* Soft off-white background to reduce eye strain */
    background-color: #f4f7f6;
    color: #2d3436;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page title */
.page-title {
    text-align: center;
    font-size: 28px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #2d3436;
    background-color: #f4f7f6;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation bar */
.navigation-bar {
    background-color: #2d3436;
    /* Deep Charcoal */
    width: 100%;
    height: 50px;
    list-style-type: none;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navigation-bar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
}

.navigation-bar-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navigation-bar-item:hover {
    background-color: #444;
}

.navigation-bar-item a {
    color: #dfe6e9;
    text-decoration: none;
    padding: 0 25px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Main content */
.main-container {
    width: 100%;
}

.main-content {
    /* Pure white for the main content to make it look like a clean document */
    background-color: #ffffff;
    width: 70%;
    min-height: calc(100vh - 195px);
    /* Adjusted for slightly taller title */
    margin: 40px auto;
    /* Added margin to make it look like a floating card */
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border-top: 4px solid #b2bec3;
    /* Subtle accent border */
}

@media (max-width: 1050px) {
    .main-content {
        width: 90%;
        margin: 20px auto;
    }
}

@media (max-width: 650px) {
    .main-content {
        width: 97%;
        margin: 10px auto;
        border-radius: 0;
    }
}

/* Page Footer */
.page-footer {
    background-color: #2d3436;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #dfe6e9;
    padding-top: 30px;
}

.page-footer h1 {
    font-size: 16px;
    color: #fab1a0;
    /* Muted accent for footer headings */
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-footer p {
    font-size: 14px;
    color: #b2bec3;
}

.footer-row {
    display: flex;
    width: 80%;
    justify-content: space-around;
    flex-grow: 1;
}

.footer-row h1 {
    text-align: center;
}

.footer-icons {
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.linkedin-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
    /* This makes the icon look white/silver to match the dark footer */
    filter: invert(1) brightness(0.9);
}

.linkedin-icon:hover {
    transform: translateY(-5px);
    /* Floats up slightly instead of just growing */
}

.footer-bottom {
    width: 100%;
    text-align: center;
    background-color: #1e272e;
    /* Slightly darker bottom bar */
    padding: 15px 0;
    font-size: 11px;
    color: #636e72;
}

/* Ai aided with mathcing style of accordion to rest of the site */
.accordion-header {
    background-color: #2d3436;
    color: #dfe6e9;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.2s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    border-radius: 4px;
}

.accordion-header:hover {
    background-color: #444444;
}


.accordion-panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    border-left: 1px solid #b2bec3;
    border-right: 1px solid #b2bec3;
}


.accordion-header.active+.accordion-panel {
    max-height: 1000px;
    padding: 18px;
    border-bottom: 1px solid #b2bec3;
}


.tab-header {

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 4px;

    color: #dfe6e9;

    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.2s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border-top: 4px solid #b2bec3;
}

.tab-header:hover {
    background-color: #444444;
    color: aliceblue
}

.tab-item button {
    color: rgb(73, 68, 68);
}

.tab-panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    border-left: 1px solid #b2bec3;
    border-right: 1px solid #b2bec3;
    display: none;
    width: 100%;
}



.tab-panel.open {
    display: block;
    max-height: none;
    /* Or a large value like 2000px if you want to animate it */
    padding: 18px;
    /* Make sure padding shows up when open */
}

.tab-container {
    display: flex;
    width: 100%;

}

.tab-item {
    flex: 1;
}


.grid-container {
    display: grid;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;

}

.grid-item {
    position: relative;
}

.grid-item img {
    aspect-ratio: 1/1;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
}
 
.grid-item h2 { 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(180, 185, 185, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: -1px -1px 0 #dfdedd,1px -1px 0 #dfdedd,-1px  1px 0 #dfdedd,1px  1px 0 #dfdedd; 
    padding-left: 3px;
    padding-right: 3px;
}
.grid-item a {
    text-decoration: none;
    color: rgb(65, 63, 63);
    display: block;
}

/* Shortener Specific Styles */
.shortener-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background-color: #2d343615;
    border-radius: 40px;
    border-style: dashed;
    white-space: nowrap;
}

.PageTitle-Center {
    margin-bottom: 15px;
    color: #2d3436;
    text-align: center;
}

.description-urlshort {
    margin-bottom: 25px;
    font-size: 14px;
    color: #3d3f3f;
}

.shortener-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.shortener-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #b2bec3;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.shortener-input:focus {
    border-color: #2d3436;
}

.shortener-btn {
    padding: 0 25px;
    background-color: #2d3436;
    color: #dfe6e9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.shortener-btn:hover {
    background-color: #313131;
}


.shortener-url-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
   
    border-radius: 8px;
    width: 100%;
}

#shortener-url-text {
    flex: 1;                 /* Take up all the space */
    white-space: nowrap;     /* Forces the text to stay on ONE line */
    overflow-x: auto;        /* The horizontal slider you want */
    overflow-y: hidden;      /* No vertical nonsense */
    padding-bottom: 5px;     /* Space for the scrollbar so it doesn't cover text */
    font-family: monospace;  /* Looks better for URLs */
    text-align: left;
}

/* Stops the copy button from shrinking when the URL is massive */
.shortener-copy-btn {
    flex-shrink: 0; 
}

.shortener-copy-btn {
    padding: 5px 15px;
    background-color: #f8e5e1; /* Using your footer accent color */
    color: #2d3436;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}



