:root {
    --primary: #facc15;
    /* Vibrant Yellow */
    --primary-hover: #eab308;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #000000;
    --text-muted: #525252;
    --border: #000000;
    --accent: #f472b6;
    /* Pink */
    --radius: 12px;
    /* Neobrutalism often uses sharp or low radius */
    --shadow: 4px 4px 0px #000000;
    --shadow-lg: 8px 8px 0px #000000;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --card-bg: #1e1e1e;
        --text-main: #ffffff;
        --text-muted: #a3a3a3;
        --border: #ffffff;
        --shadow: 4px 4px 0px #ffffff;
        --shadow-lg: 8px 8px 0px #ffffff;
    }

    .copy-input {
        background: #262626 !important;
        color: #fff !important;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
	letter-spacing: .025em;
	*{
		font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
		letter-spacing: .025em;
		text-wrap: pretty;
	}
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Left Panel: Input Area */
.input-panel {
    flex: 0 0 600px;
    padding: 40px;
    border-right: 3px solid var(--border);
    background: var(--card-bg);
    overflow-y: auto;
}

/* Right Panel: Preview Area */
.preview-panel {
    flex: 1;
    padding: 40px;
    background: var(--primary);
    /* Big bold color for the background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
}

@media (prefers-color-scheme: dark) {
    .preview-panel {
        background: #262626;
    }
}

.header {
    margin-bottom: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: auto;
    height: 48px;
    /* padding: 0 16px; */
    /* background: var(--accent); */
    /* border: 3px solid var(--border); */
    /* border-radius: var(--radius); */
    /* box-shadow: var(--shadow); */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 20px;
}

@media (prefers-color-scheme: dark) {
    .logo-icon {
        color: #fff;
    }
}

h1 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

h2{
	font-weight: 900;
}

h1,h2{
	text-wrap: pretty;
}

.tagline {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.beta-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #4ade80;
    /* Vibrant Green */
    color: #000;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid #000;
    margin-left: 8px;
    vertical-align: middle;
	opacity: 0;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 16px;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    resize: none;
    box-shadow: var(--shadow);
    transition: transform 0.1s;
}

textarea:focus {
    outline: none;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
}

.setting-item select,
.setting-item input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow);
    display: block;
    appearance: none;
}

.setting-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

@media (prefers-color-scheme: dark) {
    .setting-item select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    }
}

.generate-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: #000;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.1s;
    margin-top: 12px;
}

.generate-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border);
}

.generate-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--border);
}

/* Locked Page Styles */
.locked-container {
    text-align: center;
    padding: 60px 40px;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
}

.lock-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

/* Preview Styles */
.preview-card {
    width: 100%;
    max-width: 500px;
    background: var(--bg);
    padding: 40px;
    border: 4px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.preview-header {
    text-align: center;
    margin-bottom: 32px;
}

.preview-header h2 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 3px solid #000;
    border-radius: var(--radius);
    text-decoration: none;
    color: #000;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.1s;
}

@media (prefers-color-scheme: dark) {
    .link-item {
        background: #262626;
        color: #fff;
        border-color: #fff;
        box-shadow: 4px 4px 0px #fff;
    }
}

.link-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--border);
}

.link-icon {
    width: 48px;
    height: 48px;
    background: white;
    
	border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: var(--radius);
	border: 2px solid var(--border);
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h3 {
	margin: 0 0 .25em 0px;
	font-size: 18px;
	font-weight: 900;
	white-space: wrap; 
	text-wrap: pretty;
	color: var(--primary);
	line-height: 1.2em;
}

.link-content span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal / Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg);
    padding: 40px;
    border: 5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 12px 12px 0px var(--primary);
    max-width: 450px;
    width: 90%;
    text-align: center;
}

.qr-container {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: #fff;
}

.copy-area {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.copy-input {
    flex: 1;
    min-width: 0;
    /* Allows input to shrink below its default size */
    padding: 12px;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: #f3f4f6;
    color: #000;
    font-weight: 800;
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--accent);
    color: #000;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px #000;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #000;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.1s;
    padding: 0;
    flex-shrink: 0;
}

.icon-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px #000;
}

.icon-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px #000;
}

.icon-btn svg {
    display: block;
}

.btn-ghost {
    padding: 10px 20px;
    background: transparent;
    color: var(--text-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
    }

    .input-panel {
        flex: none;
        width: 100%;
        border-right: none;
        padding: 24px;
        /* border-bottom: 4px solid var(--border); */
    }

    .preview-panel {
        display: none !important;
    }
}