:root {
    /* French Tricolor Pastel */
    --pp-blue: #A2C2E6;
    /* Pastel Blue */
    --pp-white: #FFFFFF;
    /* White */
    --pp-red: #F5A9B8;
    /* Pastel Red / Pink */

    --pp-blue-hover: #8AB2DF;
    --pp-red-hover: #F094A6;

    --pp-bg: #FFF5F7;
    /* Very soft warm white/pink background */
    --pp-card-bg: #FFFFFF;

    --pp-text-main: #5C4d4d;
    /* Soft dark brown instead of harsh black */
    --pp-text-muted: #9C8d8d;
    --pp-border: #F0E6E6;
    --pp-radius: 16px;
    /* Rounded corners for cuteness */
}

body.pp-secret-page,
body .pp-gallery-container {
    font-family: 'Nunito', 'M PLUS Rounded 1c', sans-serif;
    background-color: var(--pp-bg);
    color: var(--pp-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.pp-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 30px 20px;
}

.pp-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.pp-tricolor-ribbon {
    height: 6px;
    width: 100px;
    margin: 0 auto 15px auto;
    background: linear-gradient(to right, var(--pp-blue) 33.3%, var(--pp-white) 33.3%, var(--pp-white) 66.6%, var(--pp-red) 66.6%);
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pp-header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--pp-text-main);
    font-weight: 700;
}

.pp-header p {
    margin: 5px 0 0;
    color: var(--pp-text-muted);
    font-size: 1rem;
}

.pp-section {
    background: var(--pp-card-bg);
    border-radius: var(--pp-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 2px solid var(--pp-white);
}

.pp-section h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 2px dashed var(--pp-border);
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--pp-text-main);
}

.pp-btn {
    display: inline-block;
    background: var(--pp-border);
    color: var(--pp-text-main);
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

.pp-btn-secondary {
    background: var(--pp-white);
    border: 2px solid var(--pp-border);
    color: var(--pp-text-muted);
}

.pp-btn-secondary:hover {
    border-color: var(--pp-blue);
    color: var(--pp-blue);
}

.pp-btn-primary {
    background: var(--pp-blue);
    color: white;
    box-shadow: 0 3px 0 var(--pp-blue-hover);
}

.pp-btn-primary:active {
    transform: translateY(3px);
    box-shadow: none;
}

.pp-btn-download {
    background: var(--pp-red);
    color: white;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 15px;
}

.pp-btn-download:hover {
    background: var(--pp-red-hover);
}

/* Upload Forms */
.pp-file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.pp-file-input-wrapper input[type="file"] {
    display: none;
}

#wb-file-name {
    font-size: 0.9rem;
    color: var(--pp-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

textarea#wb-text-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 2px solid var(--pp-border);
    border-radius: 12px;
    resize: vertical;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 0.95rem;
}

textarea#wb-text-input:focus {
    outline: none;
    border-color: var(--pp-blue);
}

.pp-status {
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: bold;
}

.pp-status.success {
    color: var(--pp-blue);
}

.pp-status.error {
    color: var(--pp-red);
}

/* Lists */
.pp-list-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pp-list-section li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed var(--pp-border);
}

.pp-list-section li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pp-file-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-right: 15px;
}

.pp-file-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pp-text-main);
}

.pp-file-meta {
    font-size: 0.85rem;
    color: var(--pp-text-muted);
    margin-top: 4px;
}

.pp-text-item {
    flex-direction: column;
    align-items: flex-start !important;
}

.pp-text-content {
    background: var(--pp-bg);
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    border: 1px solid var(--pp-border);
}

.pp-text-meta {
    font-size: 0.85rem;
    color: var(--pp-text-muted);
    margin-top: 8px;
}

.pp-empty-msg {
    color: var(--pp-text-muted);
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    padding: 20px 0;
}

/* Public Gallery Grid */
.pp-gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.pp-grid-item {
    background: var(--pp-card-bg);
    border-radius: var(--pp-radius);
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 2px solid var(--pp-border);
    transition: transform 0.2s ease;
}

.pp-grid-item:hover {
    transform: translateY(-3px);
    border-color: var(--pp-blue);
}

.pp-illust-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--pp-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-illust-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-no-image {
    color: var(--pp-text-muted);
    font-size: 0.9rem;
}

.pp-illust-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: var(--pp-text-main);
    font-weight: 700;
}

/* Affiliate Section */
.pp-affiliate-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px dashed var(--pp-border);
}

.pp-affiliate-box,
.pp-affiliate-placeholder {
    width: 300px;
    height: 250px;
    background: var(--pp-card-bg);
    border: 2px dashed var(--pp-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pp-blue);
    font-weight: bold;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.pp-affiliate-box .widget {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.pp-footer {
    text-align: center;
    margin-top: 40px;
    color: var(--pp-text-muted);
    font-size: 0.85rem;
}