@charset "UTF-8";

/* ==========================================================================
   Variables & Theme (Spring Cherry Blossom)
   ========================================================================== */
:root {
    --primary-pink: #ffb7c5;    /* Soft Cherry Blossom Pink */
    --deep-pink: #ff6b81;       /* Vibrant Pink for accents */
    --bg-white: #fff9fa;        /* Light Pinkish White */
    --leaf-green: #a8e6cf;      /* Minty Green for contrast */
    --text-charcoal: #4a4a4a;
    --soft-shadow: 0 8px 32px 0 rgba(255, 183, 197, 0.3);
    --border-radius: 20px;
    font-family: 'Pretendard', sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg-white);
    background-image: radial-gradient(var(--primary-pink) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    color: var(--text-charcoal);
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   Affiliate Notice (Conveyor Belt Animation)
   ========================================================================== */
.affiliate-notice-container {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-pink);
    overflow: hidden; /* Hide overflow for the loop */
    z-index: 1000;
    height: 40px;
    display: flex;
    align-items: center;
}

.affiliate-notice-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 40s linear infinite;
}

.affiliate-notice-content span {
    padding: 0 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-pink);
    display: flex;
    align-items: center;
}

.affiliate-notice-content span::after {
    content: '🌸';
    margin-left: 40px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    font-size: 2.5rem;
    color: var(--deep-pink);
}

.header-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--deep-pink);
}

.header-text p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #888;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.icon-button {
    background: #fff;
    border: 1px solid var(--primary-pink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--deep-pink);
    box-shadow: 0 2px 8px rgba(255, 183, 197, 0.2);
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Business Proposal Button (Instagram)
   ========================================================================== */
.business-proposal {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(255, 183, 197, 0.3);
}

.business-proposal p {
    margin: 0;
    font-weight: 700;
    color: var(--deep-pink);
}

.proposal-button {
    background: var(--bg-white);
    color: var(--deep-pink);
    border: 1px solid var(--primary-pink);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.proposal-button:hover {
    background: var(--primary-pink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 129, 0.2);
}

/* ==========================================================================
   Search Section UI
   ========================================================================== */
.search-section {
    margin-bottom: 30px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 12px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 2px solid var(--primary-pink);
}

.search-bar i {
    color: var(--deep-pink);
    margin-right: 12px;
    font-size: 1.1rem;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-charcoal);
    background: transparent;
}

.search-bar input::placeholder {
    color: #bbb;
}

.search-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* ==========================================================================
   Item List
   ========================================================================== */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==========================================================================
   Admin UI & Controls
   ========================================================================== */
.admin-only {
    display: none !important;
}

body.is-admin .admin-only {
    display: block !important;
}

.footer-admin-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.05;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.modal-content h2 {
    color: var(--deep-pink);
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--primary-pink);
    border-radius: 10px;
    box-sizing: border-box;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: var(--deep-pink);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.add-item-container {
    margin-top: 30px;
}

.btn-add-item {
    width: 100%;
    padding: 18px;
    background: var(--primary-pink);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--soft-shadow);
    transition: background 0.3s;
}

.btn-add-item:hover {
    background: var(--deep-pink);
}

/* Admin Controls on Cards */
.item-wrapper {
    position: relative;
}

.admin-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--deep-pink);
    color: white;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.control-btn:hover {
    transform: scale(1.1);
}
