/* css/project-page.css */

.project-detail-header {
    padding-top: 140px;
    text-align: center;
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.project-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.project-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-content h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--header-color);
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
}

.back-link i {
    margin-right: 8px;
}

/*new code for projs*/

/* =================================================
   NEW STYLES TO ADD for a Bolder Project Page
   ================================================= */

/* Overriding the header for more padding and a bottom border */
.project-detail-header {
    padding-top: 135px; /* Reduced padding slightly */
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #444;
}

/* --- NEW: Styling for the Main Title --- */
.project-page-title { /*adjust between title and metadata*/
    font-family: 'Oswald', sans-serif;
    font-size: 4rem; /* Big and bold for impact */
    color: #fff;
    margin-bottom: 2.2rem;
    line-height: 1.2;
}

/* --- NEW: Grid for Metadata (Difficulty, Tech, etc.) --- */
.project-meta-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* Space between items */
    max-width: 800px;
    margin: 0 auto; /* Center the grid */
}

.meta-item {
    background-color: rgba(40, 40, 40, 0.8);
    border: 1px solid #555;
    color: #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    text-align: left;
    transition: transform 0.2s ease;
}

.meta-item:hover {
    transform: translateY(-5px);
    border-color: #777;
}

.meta-item i {
    color: var(--accent-color, #e8491d); /* Use your variable, with a fallback */
    font-size: 1.5rem;
    margin-right: 1rem;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-text strong {
    font-family: 'Oswald', sans-serif;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.meta-text span {
    font-size: 0.9rem;
    color: #ccc;
}

/* --- NEW: Styling for GitHub/Live Demo Buttons --- */
.project-links { /*adjust between metadata and github repo*/
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 12px 28px;
    background-color: var(--accent-color, #e8491d);
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.project-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    background-color: #f9633a; /* A lighter shade for hover */
}

/* =================================================
   NEW STYLES for Star Rating & Tooltips
   ================================================= */

/* Make the meta-item a positioning context for the tooltip */
.meta-item {
    position: relative; 
}

/* --- Star Rating Styles --- */
.star-rating {
    position: relative;
    display: inline-block;
    font-size: 1.1rem; /* Controls the size of the stars */
}

.stars-background {
    color: #555; /* Color of empty/background stars */
    position: relative;
    z-index: 1;
}

.stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap; /* Prevents stars from wrapping */
    overflow: hidden;    /* The magic! Clips the filled stars */
    color: var(--accent-color, #e8491d); /* Color of filled stars */
    z-index: 2;
}

/* --- Tooltip Styles --- */
.tooltip-text {
    visibility: hidden; /* Hide by default */
    opacity: 0;
    width: max-content; /* Make the box as wide as its content */
    background-color: #111;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 10;
    bottom: 125%; /* Position the tooltip above the item */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #666;
}

/* Show the tooltip on hover */
.meta-item:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Optional: Adds a little arrow to the tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}