/* --- PUBLIC / FRONTEND LAYOUTS --- */
.public-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 1rem;
}

.public-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--theme-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* File List (Download Page) */
.file-list {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 2rem;
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}

/* Timer (One-Time Links) */
.timer-box {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: 4px;
    color: var(--theme-color);
    margin-bottom: 1.5rem;
    border: 1px solid var(--theme-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- LANDING PAGE --- */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-body) 100%);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--theme-color);
    color: var(--theme-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: filter 0.2s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    filter: brightness(1.1);
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin: 0 0 0.75rem;
    color: var(--theme-color);
}

.feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.info-box {
    background: rgba(255, 159, 67, 0.1);
    border: 1px solid var(--theme-color);
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.info-box h3 {
    margin-top: 0;
}

.info-box ul {
    margin: 1rem 0 0 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* Responsive Landing */
@media (max-width: 1200px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* --- SECRET VIEW PAGE --- */
.secret-display {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    text-align: left;
    margin: 1.5rem 0;
    color: var(--theme-color);
    min-height: 80px;
}

.warning-box {
    background: rgba(255, 159, 67, 0.1);
    border: 2px solid #ff9f43;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    margin: 1.5rem 0;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.warning-box h2 {
    margin-top: 0;
    color: #ff9f43;
}

.warning-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.password-form {
    margin: 1.5rem 0;
}

.password-form .form-group {
    margin-bottom: 1rem;
}

/* --- CREATE SECRET PAGE --- */
.secret-form-container {
    max-width: 600px;
    width: 100%;
}

.expiration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.expiration-btn {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.expiration-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.expiration-btn.active {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: var(--theme-text);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    color: var(--text-main);
}

.secret-link {
    background: var(--bg-input);
    padding: 1.25rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
    text-align: left;
    line-height: 1.4;
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

/* Specific helper for Create Secret Info Box to avoid conflict with Landing if needed, though they are similar */
.secret-form-container .info-box {
    background: rgba(255, 159, 67, 0.1);
    border: 1px solid var(--theme-color);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.secret-form-container .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
