﻿:root {
    --primary: #8b6df8;
    --primary-dark: #6e52d8;
    --primary-light: #f6f1ff;
    --border: #e8ddff;
    --text: #43376d;
    --pink: #ffd8e8;
    --shadow: 0 10px 30px rgba(120, 100, 220, .08);
}

body {
    background: #faf9fd;
    color: var(--text);
    font-family: 'Patrick Hand', cursive;
}

/*****************************************
PAGE
******************************************/

.rng-page {
    max-width: 1600px;
    margin: auto;
    padding: 20px;
}

.rng-breadcrumb {
    background: white;
    border-radius: 20px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

    .rng-breadcrumb a {
        text-decoration: none;
        color: var(--primary-dark);
    }

/*****************************************
HERO
******************************************/

.hero-card {
    background: white;
    border-radius: 30px;
    border: 1px solid var(--border);
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.hero-title {
    text-align: center;
    color: var(--primary-dark);
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
}

.hero-decoration {
    position: absolute;
    font-size: 70px;
    opacity: .20;
}

.hero-left {
    left: 30px;
    top: 25px;
}

.hero-right {
    right: 50px;
    top: 20px;
}

/*****************************************
AIR MAIL BORDER
******************************************/

.airmail-wrapper {
    padding: 8px;
    border-radius: 30px;
    background: repeating-linear-gradient( 45deg, #ffb9cf 0 14px, white 14px 28px, #bca6ff 28px 42px, white 42px 56px);
    box-shadow: var(--shadow);
}

.generator-box {
    background: white;
    border-radius: 24px;
    padding: 30px;
}

/*****************************************
FORMS
******************************************/

.form-label,
label {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border-radius: 15px;
    border: 2px solid var(--border);
    min-height: 52px;
    font-size: 1.1rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: none;
    }

/*****************************************
PRESETS
******************************************/

.preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 8px 18px;
    transition: .25s;
}

    .preset-btn:hover {
        background: var(--primary-light);
    }

    .preset-btn.active {
        background: var(--primary);
        color: white;
    }

/*****************************************
ENVELOPE RESULT
******************************************/

.envelope-card {
    position: relative;
    min-height: 320px;
    background: linear-gradient( 180deg, #f5f0ff, #ffffff);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .envelope-card::before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient( 180deg, transparent, rgba(180,150,255,.10));
        clip-path: polygon( 0 0, 50% 100%, 100% 0, 100% 100%, 0 100%);
    }

.result-label {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.result-number {
    position: relative;
    z-index: 2;
    font-size: 6rem;
    color: #2c2557;
    line-height: 1;
    text-align: center;
    word-break: break-word;
}

/*****************************************
BUTTONS
******************************************/

.button-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-main {
    background: var(--primary);
    color: white;
    border-radius: 15px;
    padding: 12px 24px;
}

    .btn-main:hover {
        background: var(--primary-dark);
        color: white;
    }

.btn-copy {
    border-radius: 15px;
    background: white;
    border: 2px solid var(--border);
}

.btn-generate {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    border-radius: 15px;
}

/*****************************************
NOTEBOOK PAPER
******************************************/

.note-paper {
    background: repeating-linear-gradient( white, white 28px, #ececec 29px);
    border-radius: 20px;
    border: 1px solid #ececec;
    min-height: 260px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    font-size: 1.2rem;
    transform: rotate(-1deg);
}

/*****************************************
CONFETTI SWITCH
******************************************/

.confetti-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.switch {
    position: relative;
    width: 55px;
    height: 28px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 50px;
    transition: .3s;
}

    .slider:before {
        content: "";
        position: absolute;
        width: 22px;
        height: 22px;
        left: 3px;
        top: 3px;
        background: white;
        border-radius: 50%;
        transition: .3s;
    }

.switch input:checked + .slider {
    background: var(--primary);
}

    .switch input:checked + .slider:before {
        transform: translateX(27px);
    }

/*****************************************
HISTORY PANEL
******************************************/

.history-panel {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    min-height: 420px;
    box-shadow: var(--shadow);
}

    .history-panel h3 {
        color: var(--primary-dark);
        margin-bottom: 20px;
    }

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #faf7ff;
    border-radius: 15px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.history-number {
    font-size: 1.6rem;
}

.history-time {
    color: #888;
    font-size: .9rem;
}

/*****************************************
INFO CARDS
******************************************/

.info-card {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 25px;
    min-height: 250px;
    box-shadow: var(--shadow);
}

    .info-card h3 {
        color: var(--primary-dark);
        margin-bottom: 20px;
    }

/*****************************************
SIDEBAR
******************************************/

.popular-tools {
    background: white;
    border-radius: 25px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

    .popular-tools h3 {
        text-align: center;
        color: var(--primary-dark);
        margin-bottom: 20px;
    }

.tool-item {
    background: #faf7ff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 12px;
    transition: .25s;
    cursor: pointer;
    font-size: 1.15rem;
}

    .tool-item:hover {
        transform: translateY(-3px);
        background: white;
        box-shadow: var(--shadow);
    }

/*****************************************
FAQ STYLE
******************************************/

.faq-item {
    background: #faf7ff;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
}

/*****************************************
SCROLLBAR
******************************************/

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbbcff;
    border-radius: 20px;
}

/*****************************************
RESPONSIVE
******************************************/

@media(max-width:1200px) {

    .hero-title {
        font-size: 3rem;
    }
}

@media(max-width:992px) {

    .popular-tools {
        position: relative;
    }

    .result-number {
        font-size: 4rem;
    }
}

@media(max-width:768px) {

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .button-row {
        flex-direction: column;
    }

    .result-number {
        font-size: 3rem;
    }

    .envelope-card {
        min-height: 220px;
    }
}
