/* =========================================
   LEOCONS UI KIT
   Components: Buttons, Inputs, Cards, Badges
   ========================================= */

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font-subheading); /* Oswald */
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-radius: var(--radius-sm);
    text-decoration: none;
    line-height: 1;
}

/* --- Primary (Solid Neon) --- */
.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #00ffaa;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* --- Outline (Border only) --- */
.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-main);
}

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

/* --- Neon Special (Glowy) --- */
.btn-neon {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 5px rgba(0, 255, 157, 0.2), inset 0 0 5px rgba(0, 255, 157, 0.1);
}

.btn-neon:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
}

/* --- Danger (Red) --- */
.btn-danger {
    background-color: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--accent-danger);
    color: var(--accent-danger);
}

.btn-danger:hover {
    background-color: var(--accent-danger);
    color: white;
}

/* --- Ghost (Icon only / Transparent) --- */
.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 8px;
}

.btn-ghost:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Sizes --- */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-xl {
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    color: var(--text-main);
}

/* =========================================
   INPUTS & FORMS
   ========================================= */

.auth-form, .prop-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    border-color: var(--accent-secondary);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input Hint */
.input-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Domain Input Special */
.domain-input {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding-right: 12px;
}

.domain-input input {
    border: none;
    background: transparent;
    padding-right: 5px;
}

.domain-input input:focus {
    box-shadow: none;
}

.domain-input:focus-within {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.domain-suffix {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* =========================================
   PRICING CARDS
   ========================================= */

.pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center; /* Center vertically if heights differ */
}

.pricing-card {
    background: var(--bg-light);
    border: 1px solid #222;
    padding: 30px;
    position: relative;
    border-radius: var(--radius-md);
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

/* Highlighted Plan */
.pricing-card.best-value {
    border: 1px solid var(--accent-primary);
    background: radial-gradient(circle at top right, rgba(0, 255, 157, 0.05), transparent 60%), var(--bg-light);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.best-value:hover {
    transform: scale(1.08);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: black;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.plan-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.price {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-main);
    font-family: var(--font-subheading);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 8px 0;
    color: #ccc;
    font-size: 0.95rem;
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li.disabled {
    color: #444;
    text-decoration: line-through;
}

/* =========================================
   PROJECT CARDS (DASHBOARD)
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #111;
    border: 1px solid #2a2a2a;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #444;
}

/* Create New Card Style */
.project-card.create-new {
    border: 2px dashed #333;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-card.create-new:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.02);
}

.create-content .plus-icon {
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: 0.2s;
}

.project-card.create-new:hover .plus-icon {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.create-content h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.create-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Skeleton Loading Card */
.skeleton-card {
    background: #111;
    pointer-events: none;
}

.sk-img {
    height: 60%;
    background: #1a1a1a;
    animation: pulse 1.5s infinite;
}

.sk-line {
    height: 12px;
    background: #1a1a1a;
    margin: 15px 15px 5px;
    border-radius: 4px;
    width: 70%;
    animation: pulse 1.5s infinite;
}

.sk-line.short {
    width: 40%;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* =========================================
   EDITOR UI (Properties Panel)
   ========================================= */

.tiny-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.style-row {
    display: flex;
    gap: 10px;
}

.input-col {
    flex: 1;
}

.prop-input-sm {
    padding: 6px 8px !important;
    font-size: 0.85rem !important;
}

.color-picker {
    width: 100%;
    height: 35px;
    border: 1px solid #333;
    background: #111;
    padding: 2px;
    cursor: pointer;
}

.align-toggles {
    display: flex;
    border: 1px solid #333;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.align-btn {
    flex: 1;
    background: #111;
    border: none;
    color: #888;
    padding: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    border-right: 1px solid #333;
}

.align-btn:last-child {
    border-right: none;
}

.align-btn:hover {
    background: #222;
    color: white;
}

.align-btn.active {
    background: var(--accent-secondary);
    color: black;
}
