/* Home Page Specific Styles */

.home-header {
    margin-bottom: 2rem;
}

/* Greeting Row with Premium Badge */
.greeting-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.greeting-row .page-title {
    margin: 0;
}

/* Premium Badge - Compact inline version */
.premium-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    border-radius: 100px;
    font-weight: 800;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.premium-badge-inline:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.premium-badge-inline svg {
    fill: white;
    stroke: white;
}

.premium-badge-inline .plus-text {
    font-size: 1em;
    font-weight: 900;
    margin-left: 1px;
}

/* Subtitle Row with CTAs */
.subtitle-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.subtitle-row .page-subtitle {
    margin: 0;
}

/* Upgrade CTA for free users */
.upgrade-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upgrade-cta:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.6);
    transform: translateX(2px);
}

.upgrade-cta .cta-text {
    color: rgba(255, 255, 255, 0.9);
}

.upgrade-cta .plus-gradient {
    font-weight: 900;
    font-size: 1.1em;
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upgrade-cta svg {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.upgrade-cta:hover svg {
    transform: translateX(2px);
    color: #ff6b6b;
}

/* Sign Up CTA for logged-out users */
.signup-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.signup-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.signup-cta svg {
    transition: transform 0.3s ease;
}

.signup-cta:hover svg {
    transform: translateX(2px);
}

.home-section {
    margin-bottom: 2rem;
}

/* Camera Hero Stack */
.camera-hero-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.camera-hero-card {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #1e293b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.camera-hero-card.willards-card {
    background-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%), url('/static/willards.jpeg');
    background-size: cover;
    background-position: center;
}

.camera-hero-card.tiffanys-card {
    background-image: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%), url('/static/ClarksBay.jpg');
    background-size: cover;
    background-position: center;
}

.camera-hero-card:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.4);
    filter: brightness(1.1);
}

.camera-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.camera-hero-content div {
    display: flex;
    flex-direction: column;
}

.camera-hero-content h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}

.camera-hero-content .status-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.camera-hero-content .status-text::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.camera-arrow-icon {
    background: rgba(255,255,255,0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    color: white;
    transition: transform 0.3s ease;
}

.camera-hero-card:hover .camera-arrow-icon {
    transform: translateX(4px);
    background: rgba(255,255,255,0.3);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: var(--light-gray);
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.action-card.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 160, 122, 0.1));
    border-color: rgba(255, 107, 107, 0.3);
}

.action-card.full-width {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    flex-direction: row;
    justify-content: flex-start;
    padding: 1.5rem 2rem;
}

.action-card.full-width .icon-box {
    margin-right: 1.5rem;
    background: rgba(255, 107, 107, 0.2); 
    color: #ff6b6b;
}

.action-card .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mid-gray);
    transition: all 0.3s ease;
}

.action-card.highlight .icon-box {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.action-card:hover .icon-box {
    transform: scale(1.1);
    color: white;
}

.action-card span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Sign In Card Styles */
.sign-in-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 160, 122, 0.15)) !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
    position: relative;
}

.sign-in-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 160, 122, 0.05));
    border-radius: 16px;
    z-index: 0;
}

.sign-in-card span {
    background: linear-gradient(135deg, #ff6b6b, #ffa07a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.sign-in-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 107, 107, 0.6) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
}

.sign-in-card .icon-box {
    z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .camera-hero-card {
        height: 100px;
    }
    .camera-hero-content h3 {
        font-size: 1.2rem;
    }
    
    /* Greeting row stacks on very small screens */
    .greeting-row {
        gap: 0.5rem;
    }
    
    .premium-badge-inline {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    
    .subtitle-row {
        gap: 0.75rem;
    }
    
    .upgrade-cta,
    .signup-cta {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .greeting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .subtitle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
