/* Common Styles - Shared across all templates */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
    background: #ebe1e2;
    min-height: 100vh;
    /* Add padding-top to account for fixed header (80px height + 16px margin-top + 16px spacing) */
    padding-top: 112px;
}

/* Header - Shared across all templates */
.start-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.1);
    padding: 12px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    flex: 0 0 auto;
}

.logo-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 12px;
}

.logo-heart svg {
    width: 32px;
    height: 32px;
    fill: #EC4899;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 40px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 25px;
    font-size: 14px;
    background: white;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #EC4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: #EC4899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: #DB2777;
    transform: translateY(-50%) scale(1.05);
}

.search-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #EC4899;
}

.notification-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    transform: scale(1.05);
}

.notification-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #EC4899;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content Container - Shared layout */
.start-main {
    padding: 48px 0 80px 0; /* 160px total from top (112px body + 48px) - 80px bottom - Figma spec */
    width: 1200px; /* Exactly 1200px to match Figma Frame 18 */
    margin: 0 auto;
}

/* Responsive Design for Header and Main */
@media (max-width: 1024px) {
    .start-main {
        padding: 32px 24px;
        width: 100%;
        max-width: 1200px;
    }
}

@media (max-width: 768px) {
    .start-header {
        padding: 12px 20px;
    }
    
    .header-center {
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .start-main {
        padding: 24px 16px;
    }
}

/* Figma Header Styles - Enhanced Liquid Glass Effect */
.figma-header {
    /* Exact Figma specs */
    height: 80px;
    background: rgba(249, 242, 242, 0.30);
    backdrop-filter: blur(25px) saturate(1.8);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    border-radius: 100px;
    box-shadow: 4px 6px 12px rgba(201.40, 197.89, 199, 0.30);
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 32px;
    
    /* Fixed positioning - follows viewport */
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin-top: 16px;
    
    /* Sizing */
    width: 1200px;
    max-width: calc(100vw - 32px);
    
    transition: all 0.3s ease;
}

.figma-header:hover {
    backdrop-filter: blur(30px) saturate(2.0);
    -webkit-backdrop-filter: blur(30px) saturate(2.0);
    box-shadow: 4px 8px 16px rgba(201.40, 197.89, 199, 0.35);
}

.figma-header-fixed {
    justify-content: space-between;
}

/* Logo Container */
.figma-logo-container {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 10px;
}

.figma-header:not(.figma-header-fixed) .figma-logo-container {
    width: 232px;
}

.figma-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    transform: rotate(180deg) scaleY(-1);
}

.figma-logo img {
    width: 64px;
    height: 58.365px;
    object-fit: cover;
}

.figma-header:not(.figma-header-fixed) .figma-logo img {
    width: 65.223px;
    height: 59.48px;
}

/* Search Section - Index (flexible) */
.figma-search-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-width: 0;
}

.figma-search-container {
    background: white;
    border-radius: 100px;
    box-shadow: 4px 6px 12px 0px rgba(201, 198, 199, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 12px 0px 24px; 
    width: 100%;
    min-height: 56px;
}

/* Search Section - Anzeige (fixed width) */
.figma-search-fixed {
    background: white;
    border-radius: 100px;
    width: 600px;
    height: 56px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 24px; 
    flex-shrink: 0;
}

.figma-search-placeholder {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(59, 55, 71, 1); /* Normale Textfarbe für Eingabe */
    margin: 0;
    flex: 1; /* Nimmt verfügbaren Platz ein */
    border: none;
    background: transparent;
    outline: none;
    line-height: 1.5;
    width: 100%; /* Volle Breite nutzen */
}

/* Placeholder-Styling */
.figma-search-placeholder::placeholder {
    color: rgba(59, 55, 71, 0.5); /* Hellere Farbe für Placeholder */
    font-weight: 500;
}

/* Fokus-Styling (optional) */
.figma-search-placeholder:focus {
    outline: none; /* Kein Standard-Outline */
}

/* Container beim Fokus hervorheben (optional) */
.figma-search-container:focus-within {
    box-shadow: 4px 6px 12px 0px rgba(201, 198, 199, 0.5);
}

.figma-search-button-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.figma-search-button {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 12px;
    /* background: rebeccapurple; */
    background: linear-gradient(89deg, #E51E4F 0.79%, #E01661 104.42%);
}

.figma-search-button img {
    width: 24px;
    height: 24px;
}

/* Notifications Container */
.figma-notifications-container {
    width: 232px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.figma-notifications-container-fixed {
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.figma-notifications-section {
    width: 152.989px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    padding: 0 32px;
    position: relative;
}

.figma-notifications-section-fixed {
    width: 240px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    position: relative;
}

.figma-notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.figma-notification-icon img {
    width: 100%;
    height: 100%;
}

.figma-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.figma-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.figma-menu-icon {
    width: 24px;
    height: 16px;
    flex-shrink: 0;
}

.figma-menu-icon img {
    width: 100%;
    height: 100%;
}

.figma-notification-dot {
    position: absolute;
    left: 40.99px;
    top: 9.98px;
    width: 8px;
    height: 8px;
}

.figma-notification-dot img {
    width: 10px;
    height: 10px;
    margin: -1px;
}

/* Responsive adjustments for Figma header */
@media (max-width: 1400px) and (orientation: portrait) {
    .figma-header {
        padding: 8px 20px;
        gap: 12px;
        max-width: calc(100vw - 32px);
        margin: 16px auto;
    }
    
    .figma-search-fixed {
        width: 500px;
        min-width: 300px;
    }
    
    .figma-logo-container,
    .figma-notifications-container-fixed {
        width: 180px;
        min-width: 120px;
    }
}

@media (max-width: 1024px) {
    .figma-header {
        padding: 8px 16px;
        gap: 12px;
        max-width: calc(100vw - 32px);
        margin: 16px auto;
        flex-wrap: nowrap;
    }
    
    .figma-search-fixed {
        width: 450px;
        min-width: 280px;
    }
    
    .figma-logo-container,
    .figma-notifications-container,
    .figma-notifications-container-fixed {
        width: 150px;
        min-width: 100px;
    }
    
    .figma-notifications-section,
    .figma-notifications-section-fixed {
        gap: 20px;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .figma-header {
        padding: 8px 12px;
        gap: 8px;
        max-width: calc(100vw - 24px);
        margin: 12px auto;
        flex-wrap: nowrap;
    }
    
    .figma-search-fixed {
        width: 350px;
        min-width: 250px;
    }
    
    .figma-logo-container,
    .figma-notifications-container,
    .figma-notifications-container-fixed {
        width: 120px;
        min-width: 80px;
    }
    
    .figma-search-section {
        padding: 0 6px;
    }
    
    .figma-notifications-section,
    .figma-notifications-section-fixed {
        gap: 16px;
        padding: 0 8px;
    }
}

@media (max-width: 600px) {
    .figma-header {
        padding: 6px 10px;
        gap: 6px;
        max-width: calc(100vw - 20px);
        margin: 10px auto;
        flex-wrap: nowrap;
    }
    
    .figma-search-fixed {
        width: 280px;
        min-width: 200px;
    }
    
    .figma-logo-container,
    .figma-notifications-container,
    .figma-notifications-container-fixed {
        width: 100px;
        min-width: 70px;
    }
    
    .figma-logo img {
        width: 48px !important;
        height: 44px !important;
    }
    
    .figma-notifications-section,
    .figma-notifications-section-fixed {
        gap: 12px;
        padding: 0 6px;
    }
    
    .figma-notification-icon,
    .figma-menu-icon {
        width: 20px;
        height: 20px;
    }
    
    .figma-profile-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Authentication UI styles */
.figma-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 32px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 16px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #EC4899;
    transition: all 0.2s ease;
}

.figma-login-button:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.5);
    transform: scale(1.02);
}

.auth-dropdown {
    position: relative;
    cursor: pointer;
}

.auth-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 4px 6px 12px 0px rgba(201, 198, 199, 0.3);
    padding: 12px;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.auth-dropdown:hover .auth-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding: 8px 0;
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    margin-bottom: 8px;
}

.user-email {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: rgba(59, 55, 71, 0.7);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgba(59, 55, 71, 0.8);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.logout-link {
    color: rgba(239, 68, 68, 0.8);
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Responsive adjustments for auth UI */
@media (max-width: 768px) {
    .figma-login-button {
        width: 70px;
        height: 28px;
        font-size: 12px;
    }
    
    .auth-dropdown-content {
        min-width: 160px;
        right: -20px;
    }
}

@media (max-width: 600px) {
    .figma-login-button {
        width: 60px;
        height: 24px;
        font-size: 11px;
        border-radius: 12px;
    }
    
    .auth-dropdown-content {
        min-width: 140px;
        right: -30px;
    }
}