/* GoAidMe Template Styles 
    Based on RyanCV Layout
*/

:root {
    --gam-primary: #78cc6d;
    --gam-secondary: #50a3a2;
    --gam-text: #666;
    --gam-heading: #333;
    --gam-white: #ffffff;
    --gam-border: #eeeeee;
    --gam-radius: 4px;
}

body {
    background-color: var(--gam-secondary);
    font-family: 'Poppins', sans-serif;
    color: var(--gam-text);
    margin: 0;
    overflow-x: hidden;
}

/* Background */
.gam-background-gradient {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom right, #50a3a2 0%, #78cc6d 100%);
    z-index: -1;
}

.gam-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    box-sizing: border-box;
}

/* --- HEADER / DRAWER --- */
.gam-header {
    position: fixed;
    top: 30px;
    right: 30px;
    left: 30px;
    height: 72px;
    background: #fff;
    border-radius: var(--gam-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1140px;
    margin: 0 auto;
}

.gam-header-profile {
    display: flex;
    flex-direction: column;
}

.gam-header-title { font-weight: 700; color: var(--gam-heading); }
.gam-header-subtitle { font-size: 12px; color: var(--gam-primary); }

.gam-menu-btn, .gam-user-btn {
    cursor: pointer;
    font-size: 24px;
    color: var(--gam-heading);
}

.gam-menu-btn:hover { color: var(--gam-primary); }

/* Drawer */
.gam-drawer-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    z-index: 99;
    transform: translateX(-100%);
    transition: 0.5s ease;
    padding: 100px 30px 30px;
    box-sizing: border-box;
    overflow-y: auto;
}

.gam-menu-open .gam-drawer-menu {
    transform: translateX(0);
}

.gam-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gam-drawer-item a {
    display: block;
    text-decoration: none;
    color: var(--gam-heading);
}

.gam-drawer-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: var(--gam-radius);
    margin-bottom: 10px;
}

/* --- LEFT SIDEBAR (CARD) --- */
.gam-card-started {
    width: 480px;
    background: #fff;
    border-radius: var(--gam-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* Below Header */
    height: calc(100vh - 140px);
    text-align: center;
}

.gam-profile-image {
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    margin-bottom: -40px;
}

.gam-profile-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gam-heading);
    margin-top: 20px;
}

.gam-typing-container {
    color: var(--gam-primary);
    font-size: 16px;
    height: 24px;
    overflow: hidden;
}

/* Progress Bar */
.gam-profile-progress {
    padding: 20px 40px;
}

.gam-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 5px;
}

.gam-progress-track {
    background: #eee;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.gam-progress-fill {
    background: var(--gam-primary);
    height: 100%;
}

/* Buttons */
.gam-profile-buttons {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    display: flex;
}

.gam-btn {
    flex: 1;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border-top: 1px solid var(--gam-border);
    color: var(--gam-heading);
    transition: 0.3s;
}

.gam-btn:hover { color: var(--gam-primary); }

.gam-btn:first-child { border-right: 1px solid var(--gam-border); }

/* --- RIGHT CONTENT --- */
.gam-card-inner {
    flex: 1;
    background: #fff;
    border-radius: var(--gam-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 100px;
    margin-left: 20px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    position: relative;
    z-index: 8;
    padding: 0;
}

.gam-section {
    padding: 50px 40px;
    border-bottom: 1px solid var(--gam-border);
}

.gam-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gam-heading);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.gam-section-title:after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--gam-primary);
    box-shadow: 2px 0 10px rgba(120,204,109,0.5);
}

/* Timeline Style */
.gam-timeline-items {
    border-left: 1px solid var(--gam-border);
    padding-left: 30px;
}

.gam-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.gam-timeline-item:before {
    content: '';
    position: absolute;
    left: -35px; top: 0;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gam-primary);
}

.gam-item-date {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid var(--gam-primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--gam-primary);
    margin-bottom: 8px;
}

.gam-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gam-heading);
    margin-bottom: 10px;
}

/* Gallery Style */
.gam-grid-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gam-image {
    position: relative;
    border-radius: var(--gam-radius);
    overflow: hidden;
}

.gam-image img {
    width: 100%;
    display: block;
    transition: 0.3s;
}

.gam-image:hover img { transform: scale(1.1); filter: blur(2px); }

.gam-image .gam-info {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(120,204,109,0.8);
    opacity: 0;
    transition: 0.3s;
    color: #fff;
    font-size: 24px;
}

.gam-image:hover .gam-info { opacity: 1; }

/* Pricing/Donations Style */
.gam-pricing-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gam-pricing-item {
    border: 1px solid var(--gam-border);
    padding: 30px;
    text-align: center;
    border-radius: var(--gam-radius);
}

.gam-pricing-item .gam-icon {
    font-size: 32px;
    color: var(--gam-primary);
    margin-bottom: 10px;
}

.gam-pricing-item .gam-name {
    font-weight: 600;
    color: var(--gam-heading);
    margin-bottom: 10px;
}

.gam-amount {
    font-size: 24px;
    font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .gam-container {
        flex-direction: column;
        height: auto;
    }
    .gam-card-started, .gam-card-inner {
        width: 100%;
        margin: 20px 0;
        height: auto;
    }
}