/* ================================
   USELESS WEBSITE GENERATOR
   style.css
================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&display=swap');

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

:root {
    --bg: #f4f5f9;
    --card: #ffffff;
    --text: #171923;
    --muted: #707584;
    --border: #e5e7ef;
    --primary: #6c5ce7;
    --primary-dark: #5848d6;
    --success: #22a06b;
    --danger: #e55353;
    --shadow: 0 15px 40px rgba(30, 35, 60, 0.08);
}

body {
    min-height: 100vh;
    font-family: 'Sora', 'Segoe UI', Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, #b9a8ff 20%, transparent 45%),
        radial-gradient(circle at 85% 80%, #a6ecff 20%, transparent 45%),
        radial-gradient(circle at 50% 50%, #f6f1ff 0%, transparent 70%),
        var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

/* animated aurora glow behind content */
body::before{
    content:"";
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 25% 30%, rgba(168,85,247,.22), transparent 35%),
        radial-gradient(circle at 80% 25%, rgba(0,194,199,.18), transparent 35%),
        radial-gradient(circle at 60% 85%, rgba(232,67,147,.16), transparent 35%);
    animation: auroraDrift 16s ease-in-out infinite alternate;
}
@keyframes auroraDrift{
    0%{ transform: translate(0,0) scale(1) rotate(0deg); }
    100%{ transform: translate(-3%,4%) scale(1.12) rotate(6deg); }
}

/* ================================
   MAIN APP
================================ */

.app {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: 45px 0 30px;
}

/* ================================
   HEADER
================================ */

.header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

.logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 34px;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.header p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 16px;
}

/* ================================
   GENERATOR
================================ */

.generator {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 25px;
    box-shadow: var(--shadow);
}

/* ================================
   IDEA CARD
================================ */

.idea-card {
    min-height: 260px;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f7ff, #f4fbff);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.idea-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(30, 35, 60, 0.07);
}

.idea-icon {
    flex-shrink: 0;
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    background: white;
    border: 1px solid var(--border);
    font-size: 58px;
    box-shadow: 0 8px 20px rgba(30, 35, 60, 0.06);
}

.idea-content {
    flex: 1;
}

.label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.idea-content h2 {
    font-size: clamp(25px, 4vw, 35px);
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.idea-content p {
    max-width: 650px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ================================
   TAGS
================================ */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--border);
    color: #5f6472;
    font-size: 12px;
    font-weight: 700;
}

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

.actions {
    margin-top: 22px;
}

button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.generate-btn {
    width: 100%;
    min-height: 62px;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(108, 92, 231, 0.25);
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.generate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(108, 92, 231, 0.3);
}

.generate-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(108, 92, 231, 0.2);
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.secondary-btn {
    min-height: 50px;
    border-radius: 14px;
    background: #f7f7fa;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    transition: 0.15s ease;
}

.secondary-btn:hover {
    background: #eeeeF5;
    transform: translateY(-1px);
}

/* ================================
   STATS
================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat {
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 900;
}

.stat-label {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

/* ================================
   SAVED IDEAS
================================ */

.saved-section {
    margin-top: 30px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 22px;
}

.clear-btn {
    padding: 8px 13px;
    border-radius: 10px;
    background: transparent;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.clear-btn:hover {
    background: #fff0f0;
}

.saved-ideas {
    display: grid;
    gap: 12px;
}

.empty-state {
    padding: 35px 20px;
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
}

.empty-state span {
    display: block;
    font-size: 35px;
    margin-bottom: 8px;
}

/* ================================
   SAVED IDEA ITEM
================================ */

.saved-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 7px 20px rgba(30, 35, 60, 0.05);
}

.saved-item-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f5f4ff;
    font-size: 26px;
}

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

.saved-item-content h3 {
    font-size: 16px;
}

.saved-item-content p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-saved {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff1f1;
    color: var(--danger);
    font-size: 16px;
    font-weight: 900;
}

.remove-saved:hover {
    background: #ffe0e0;
}

/* ================================
   FOOTER
================================ */

footer {
    padding: 35px 0 10px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

footer span {
    margin-left: 4px;
}

/* ================================
   TOAST
================================ */

.toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, 100px);
    padding: 12px 18px;
    border-radius: 12px;
    background: #171923;
    color: white;
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    z-index: 1000;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ================================
   GENERATION ANIMATION
================================ */

.idea-card.generating {
    animation: generatePulse 0.35s ease;
}

@keyframes generatePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.985);
    }

    100% {
        transform: scale(1);
    }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

    .app {
        width: min(100% - 20px, 1050px);
        padding-top: 25px;
    }

    .header {
        align-items: flex-start;
    }

    .logo {
        width: 52px;
        height: 52px;
        font-size: 28px;
        border-radius: 15px;
    }

    .header h1 {
        font-size: 27px;
    }

    .header p {
        font-size: 14px;
    }

    .generator {
        padding: 15px;
        border-radius: 20px;
    }

    .idea-card {
        min-height: 0;
        flex-direction: column;
        text-align: center;
        padding: 25px 18px;
    }

    .idea-icon {
        width: 85px;
        height: 85px;
        font-size: 45px;
    }

    .tags {
        justify-content: center;
    }

    .stats {
        gap: 8px;
    }

    .stat {
        padding: 16px 8px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .saved-item {
        padding: 12px;
    }
}

/* ================================
   NEON GLASS POLISH (additive)
================================ */

.app{ position: relative; }

.header h1{
    font-weight: 800;
    background: linear-gradient(120deg, #6c5ce7, #e84393 60%, #00c2c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p{ color: #8a7ba0; }

.logo{
    background: linear-gradient(145deg, #ffffff, #f2efff);
    border: 1px solid rgba(108, 92, 231, 0.16);
    box-shadow:
        0 12px 28px rgba(30, 35, 60, 0.10),
        0 0 0 1px rgba(255,255,255,.5) inset;
}

.generator{
    background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(247,244,255,.65));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(108, 92, 231, 0.16);
    box-shadow:
        0 24px 60px rgba(30, 35, 60, 0.10),
        0 0 40px rgba(108, 92, 231, 0.06),
        inset 0 1px 0 rgba(255,255,255,.7);
}

.idea-card{
    background:
        linear-gradient(135deg, rgba(255,255,255,.94), rgba(246,242,255,.92)),
        #fff;
    border: 1px solid rgba(108, 92, 231, 0.12);
    box-shadow:
        0 14px 36px rgba(30, 35, 60, 0.08),
        inset 0 1px 0 rgba(255,255,255,.9);
}

.idea-icon{
    background: linear-gradient(145deg, #ffffff, #efeaff);
    border: 1px solid rgba(108, 92, 231, 0.14);
    box-shadow:
        0 10px 24px rgba(30, 35, 60, 0.08),
        0 0 22px rgba(108, 92, 231, 0.10);
}

.label{
    color: #7c6cf0;
    letter-spacing: 2px;
}

.tags span{
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(108, 92, 231, 0.14);
    color: #655b92;
    box-shadow: 0 2px 8px rgba(30,35,60,.05);
}

.generate-btn{
    background: linear-gradient(135deg, #6c5ce7, #a855f7 55%, #e84393);
    background-size: 180% 180%;
    box-shadow:
        0 10px 26px rgba(108, 92, 231, 0.35),
        0 0 0 1px rgba(255,255,255,.12) inset;
    letter-spacing: .3px;
    position: relative;
    overflow: hidden;
}
.generate-btn::after{
    content:"";
    position:absolute; top:0; left:-60%;
    width:40%; height:100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
}
.generate-btn:hover{
    background-position: 100% 100%;
    box-shadow:
        0 16px 34px rgba(108, 92, 231, 0.42),
        0 0 24px rgba(168, 85, 247, 0.35);
}
.generate-btn:hover::after{ left: 130%; }

.secondary-btn{
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(108, 92, 231, 0.14);
    box-shadow: 0 4px 14px rgba(30,35,60,.05);
}
.secondary-btn:hover{
    background: #ffffff;
    border-color: rgba(108,92,231,.3);
    box-shadow: 0 8px 20px rgba(108,92,231,.12);
}

.stat{
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108,92,231,.12);
    box-shadow: 0 14px 34px rgba(30,35,60,.08);
}
.stat-number{
    background: linear-gradient(120deg,#6c5ce7,#e84393);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.saved-item{
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(108,92,231,.12);
    box-shadow: 0 8px 24px rgba(30,35,60,.06);
}

.saved-item-icon{
    background: linear-gradient(145deg,#ffffff,#f3efff);
    border: 1px solid rgba(108,92,231,.12);
    box-shadow: 0 4px 12px rgba(108,92,231,.10);
}

.saved-item:hover{ transform: translateY(-1px); border-color: rgba(108,92,231,.26); }

.empty-state{
    background: rgba(255,255,255,.7);
    border-color: rgba(108,92,231,.22);
}

.clear-btn:hover{ background: #fff0f6; }

footer{ color: #8a7ba0; }

.toast{
    background: linear-gradient(135deg,#171923,#2a2438);
    border: 1px solid rgba(168,85,247,.3);
    box-shadow: 0 12px 34px rgba(20,16,40,.3), 0 0 20px rgba(168,85,247,.15);
    border-radius: 14px;
}

button:focus-visible,
input:focus-visible{
    outline: 2px solid #7c6cf0;
    outline-offset: 2px;
}

::-webkit-scrollbar{ width: 11px; }
::-webkit-scrollbar-track{ background: rgba(108,92,231,.05); }
::-webkit-scrollbar-thumb{
    background: linear-gradient(180deg,#7c6cf0,#e84393);
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
