/* =========================================
LIGHT AI GENERATOR UI
Premium SaaS Style
========================================= */

.ai-generator-section {
  position: relative;
  padding: 100px 0;
 
  overflow: hidden;
}

/* Soft Background Glow */
.ai-generator-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  top: -220px;
  left: -180px;
  background: rgba(0, 0, 0, 0.03);
  filter: blur(120px);
}

.ai-generator-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -220px;
  right: -180px;
  background: rgba(0, 0, 0, 0.04);
  filter: blur(120px);
}

/* Main Wrapper */
.generator-wrapper {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 26px;
  position: relative;
  z-index: 2;
}

/* LEFT PANEL */
.generator-controls {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 34px;
  padding: 26px;

 
}

/* Cards */
.generator-card {
  margin-bottom: 22px;
}

.generator-label {
  display: block;
  margin-bottom: 16px;
  color: #161616;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Textarea */
.generator-card textarea {
  width: 100%;
  height: 150px;
  resize: none;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.8);
  padding: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  outline: none;
  transition: 0.3s ease;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.03);
}

.generator-card textarea:focus {
  border-color: #161616;
  box-shadow:
    0 0 0 4px rgba(0,0,0,0.04);
}

.generator-card textarea::placeholder {
  color: rgba(0,0,0,0.4);
}

/* Prompt Buttons */
.prompt-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.prompt-actions button {
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  color: #111;
  height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.prompt-actions button:hover {
  transform: translateY(-2px);
  background: #111;
  color: #fff;
}

/* Section Headings */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-header h3 {
  font-size: 17px;
  color: #161616;
  font-weight: 700;
}

.card-header span {
  font-size: 14px;
  color: rgba(0,0,0,0.45);
}

/* Ratio Grid */
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
}

.ratio-item {
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  border-radius: 22px;
  padding: 18px;
  cursor: pointer;
  transition: 0.3s ease;
}

.ratio-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.2);
}

.ratio-item.active {
  border-color: #111;
  background: #fff;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.06);
}

.ratio-box {
  border: 2px solid rgba(0,0,0,0.5);
  margin-bottom: 14px;
  border-radius: 10px;
}

.square {
  width: 56px;
  height: 56px;
}

.portrait {
  width: 48px;
  height: 72px;
}

.landscape {
  width: 82px;
  height: 48px;
}

.vertical {
  width: 42px;
  height: 78px;
}

.ratio-content h4 {
  font-size: 15px;
  color: #111;
  margin-bottom: 4px;
}

.ratio-content p {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}

/* Style Tags */
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.style-tags button {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  color: rgba(0,0,0,0.7);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.style-tags button:hover {
  background: #111;
  color: #fff;
}

.style-tags button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Sliders */
.slider-group {
  margin-bottom: 24px;
}

.slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.slider-top p {
  color: #111;
  font-weight: 600;
}

.slider-top span {
  color: rgba(0,0,0,0.45);
}

.custom-slider {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
}

.slider-fill {
  height: 100%;
  width: 84%;
  border-radius: 999px;
  background: #111;
}

.slider-fill.quality {
  width: 92%;
}

/* Generate Button */
.generate-btn {
  width: 100%;
  height: 70px;
  border: 0;
  border-radius: 24px;
  background: #111;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.35s ease;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.14);
}

.generate-btn:hover {
  transform: translateY(-3px);
}

/* RIGHT PANEL */
.generator-output {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 34px;
  padding: 24px;
  backdrop-filter: blur(18px);
  
}

/* Output Top */
.output-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.output-top h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.output-top p {
  color: rgba(0,0,0,0.45);
}

.output-top button {
  border: 0;
  background: #111;
  color: #fff;
  height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* Preview Area */
.image-preview {
  position: relative;
  height: 720px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
    #f8f8f8;
  background-size: 30px 30px;
  border: 1px solid rgba(0,0,0,0.06);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder */
.preview-placeholder {
  text-align: center;
  max-width: 420px;
}

.preview-icon {
  width: 90px;
  height: 90px;
  margin: auto;
  margin-bottom: 24px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.14);
}

.preview-placeholder h4 {
  font-size: 30px;
  color: #111;
  margin-bottom: 14px;
  font-weight: 700;
}

.preview-placeholder p {
  color: rgba(0,0,0,0.5);
  line-height: 1.8;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(0,0,0,0.06);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.top-left {
  top: 24px;
  left: 24px;
}

.top-right {
  top: 24px;
  right: 24px;
}

.bottom-left {
  bottom: 24px;
  left: 24px;
}

/* Gallery */
.preview-gallery {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-top: 20px;
}

.gallery-item {
  height: 110px;
  border-radius: 22px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
}

.gallery-item.active {
  border-color: #111;
  background: #fff;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.06);
}

/* Responsive */
@media(max-width: 991px) {

  .generator-wrapper {
    grid-template-columns: 1fr;
  }

  .image-preview {
    height: 500px;
  }

  .generator-heading h1 {
    font-size: 42px;
  }
}
/* =====================================================
FULLY RESPONSIVE AI GENERATOR UI
Mobile + Tablet + Desktop
===================================================== */

/* ---------- DESKTOP BASE ---------- */

.ai-generator-section {
  position: relative;
  padding: 12px 0;
  background: #fde17933;
  overflow: hidden;

}

.generator-wrapper {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 26px;
}

/* =====================================================
LAPTOP RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

  .generator-wrapper {
    grid-template-columns: 380px 1fr;
    gap: 20px;
  }

  .generator-controls {
    padding: 22px;
  }

  .generator-output {
    padding: 20px;
  }

  .image-preview {
    height: 620px;
  }

  .generator-heading h1 {
    font-size: 52px;
  }
}

/* =====================================================
TABLET RESPONSIVE
===================================================== */

@media (max-width: 991px) {

  .ai-generator-section {
    padding: 70px 0;
  }

  .generator-wrapper {
    grid-template-columns: 1fr;
  }

  /* Heading */
  .generator-heading {
    margin-bottom: 40px;
    padding: 0 14px;
  }

  .generator-heading h1 {
    font-size: 42px;
    line-height: 1.15;
  }

  .generator-heading p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Panels */
  .generator-controls,
  .generator-output {
    border-radius: 28px;
    padding: 22px;
  }

  /* Textarea */
  .generator-card textarea {
    height: 170px;
    font-size: 15px;
  }

  /* Preview */
  .image-preview {
    height: 520px;
  }

  .preview-placeholder h4 {
    font-size: 26px;
  }

  .preview-placeholder p {
    font-size: 15px;
  }

  /* Gallery */
  .preview-gallery {
    grid-template-columns: repeat(4,1fr);
  }
}

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

@media (max-width: 767px) {

  .ai-generator-section {
    padding: 25px 0;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Heading */
  .generator-heading {
    margin-bottom: 32px;
  }

  .generator-heading h1 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .generator-heading p {
    font-size: 15px;
    line-height: 1.7;
    padding: 0 10px;
  }

  /* Panels */
  .generator-controls,
  .generator-output {
    border-radius: 24px;
    padding: 18px;
  }

  /* Cards */
  .generator-card {
    margin-bottom: 20px;
  }

  .generator-label {
    font-size: 16px;
    margin-bottom: 14px;
  }

  /* Textarea */
  .generator-card textarea {
    height: 150px;
    padding: 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.7;
  }

  /* Prompt Buttons */
  .prompt-actions {
    flex-wrap: wrap;
  }

  .prompt-actions button {
    flex: 1;
    min-width: 120px;
    height: 46px;
    font-size: 14px;
  }

  /* Card Header */
  .card-header {
    margin-bottom: 16px;
  }

  .card-header h3 {
    font-size: 16px;
  }

  .card-header span {
    font-size: 13px;
  }

  /* Ratio Grid */
  .ratio-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
  }

  .ratio-item {
    padding: 14px;
    border-radius: 18px;
  }

  .ratio-box {
    margin-bottom: 10px;
  }

  .square {
    width: 46px;
    height: 46px;
  }

  .portrait {
    width: 38px;
    height: 58px;
  }

  .landscape {
    width: 70px;
    height: 40px;
  }

  .vertical {
    width: 34px;
    height: 64px;
  }

  .ratio-content h4 {
    font-size: 14px;
  }

  .ratio-content p {
    font-size: 12px;
  }

  /* Style Tags */
  .style-tags {
    gap: 10px;
  }

  .style-tags button {
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  /* Sliders */
  .slider-group {
    margin-bottom: 20px;
  }

  .slider-top p,
  .slider-top span {
    font-size: 14px;
  }

  /* Generate Button */
  .generate-btn {
    height: 60px;
    border-radius: 18px;
    font-size: 16px;
  }

  /* Output Top */
  .output-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .output-top h3 {
    font-size: 20px;
  }

  .output-top p {
    font-size: 14px;
  }

  .output-top button {
    width: 100%;
    height: 50px;
    border-radius: 14px;
  }

  /* Preview */
  .image-preview {
    height: 420px;
    border-radius: 22px;
  }

  .preview-placeholder {
    padding: 0 20px;
  }

  .preview-icon {
    width: 72px;
    height: 72px;
    font-size: 28px;
    margin-bottom: 18px;
  }

  .preview-placeholder h4 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .preview-placeholder p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Floating Badges */
  .floating-badge {
    padding: 10px 14px;
    font-size: 12px;
  }

  .top-left {
    top: 16px;
    left: 16px;
  }

  .top-right {
    top: 16px;
    right: 16px;
  }

  .bottom-left {
    bottom: 16px;
    left: 16px;
  }

  /* Gallery */
  .preview-gallery {
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
  }

  .gallery-item {
    height: 90px;
    border-radius: 18px;
  }
}

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

@media (max-width: 480px) {

  .generator-heading h1 {
    font-size: 30px;
  }

  .generator-heading p {
    font-size: 14px;
  }

  .generator-controls,
  .generator-output {
    padding: 16px;
    border-radius: 22px;
  }

  .generator-card textarea {
    height: 140px;
  }

  .ratio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .style-tags {
    gap: 8px;
  }

  .style-tags button {
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .generate-btn {
    height: 56px;
    font-size: 15px;
  }

  .image-preview {
    height: 340px;
  }

  .preview-placeholder h4 {
    font-size: 20px;
  }

  .preview-placeholder p {
    font-size: 13px;
  }

  .gallery-item {
    height: 80px;
  }

  .floating-badge {
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* CENTER THE ASPECT RATIO ITEMS */

.ratio-item {
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  border-radius: 22px;
  padding: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  min-height: 175px;

  cursor: pointer;
  transition: 0.3s ease;
}

/* Ratio Shape Center */
.ratio-box {
  border: 2px solid rgba(0,0,0,0.5);
  border-radius: 10px;

  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text Center */
.ratio-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ratio-content h4 {
  font-size: 15px;
  color: #111;
  margin-bottom: 4px;
  font-weight: 700;
}

.ratio-content p {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}

.preview-loading{
    text-align:center;
}

.loader{
    width:60px;
    height:60px;
    border-radius:50%;
    border:4px solid rgba(0,0,0,0.1);
    border-top-color:#111;
    animation:spin 1s linear infinite;
    margin:auto;
    margin-bottom:20px;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.generated-image{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:28px;
}

.preview-error{
    text-align:center;
    font-size:18px;
    color:#ff4d4f;
    font-weight:600;
}

.generated-image{
    width:100%;
    display:block;
    object-fit:cover;
    border-radius:28px;
}

/* 1:1 */
.ratio-1-1{
    aspect-ratio:1/1;
}

/* 3:4 */
.ratio-3-4{
    aspect-ratio:3/4;
}

/* 16:9 */
.ratio-16-9{
    aspect-ratio:16/9;
}

/* 9:16 */
.ratio-9-16{
    aspect-ratio:9/16;
    max-width:420px;
    margin:auto;
}

/* HISTORY */

.history-gallery{

    display:grid;
    grid-template-columns:
        repeat(4,1fr);

    gap:14px;

    margin-top:20px;
}

.history-item{

    height:100px;

    border-radius:20px;

    overflow:hidden;

    cursor:pointer;

    background:#fff;

    border:1px solid rgba(0,0,0,0.06);

    transition:.3s ease;
}

.history-item:hover{

    transform:translateY(-4px);
}

.history-item img{

    width:100%;
    height:100%;
    object-fit:cover;
}

.generated-history-section{

    position:relative;

    padding:90px 0;

    background:#ffffff;
}

/* HEADING */

.history-heading{

    text-align:center;

    margin-bottom:42px;
}

.history-heading h2{

    font-size:52px;
    font-weight:800;

    color:#111827;

    margin-bottom:12px;

    letter-spacing:-1px;
}

.history-heading p{

    font-size:16px;

    color:rgba(17,24,39,0.6);
}

/* GRID */

.history-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(260px,1fr));

    gap:24px;
}

/* CARD */

.history-card{

    position:relative;

    aspect-ratio:1/1;

    overflow:hidden;

    border-radius:28px;

    cursor:pointer;

    background:#fff;

    border:1px solid rgba(0,0,0,0.06);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.05);

    transition:.35s ease;
}

.history-card:hover{

    transform:
        translateY(-8px)
        scale(1.02);

    box-shadow:
        0 25px 50px rgba(0,0,0,0.08);
}

/* IMAGE */

.history-card img{

    width:100%;
    height:100%;

    object-fit:cover;

    display:block;

    transition:.45s ease;
}

.history-card:hover img{

    transform:scale(1.08);
}

/* OVERLAY */

.history-overlay{

    position:absolute;

    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;

    transition:.3s ease;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.08)
        );
}

.history-card:hover .history-overlay{

    opacity:1;
}

/* BUTTON */

.history-view-btn{

    width:62px;
    height:62px;

    border:none;

    border-radius:50%;

    background:
        rgba(255,255,255,0.9);

    backdrop-filter:blur(12px);

    color:#111827;

    font-size:20px;

    cursor:pointer;

    transition:.3s ease;
}

.history-view-btn:hover{

    transform:scale(1.08);
}

/* RESPONSIVE */

@media(max-width:991px){

    .history-heading h2{

        font-size:42px;
    }

    .history-grid{

        grid-template-columns:
            repeat(2,1fr);
    }
}

@media(max-width:767px){

    .generated-history-section{

        padding:70px 0;
    }

    .history-heading{

        margin-bottom:30px;
    }

    .history-heading h2{

        font-size:32px;
    }

    .history-heading p{

        font-size:14px;
    }

    .history-grid{

        gap:14px;
    }

    .history-card{

        border-radius:20px;
    }

    .history-view-btn{

        width:48px;
        height:48px;

        font-size:16px;
    }
}

@media(max-width:480px){

    .history-grid{

        grid-template-columns:
            1fr 1fr;
    }
}


.step-box{

    display:flex;
    align-items:center;
    justify-content:center;

    background:
        linear-gradient(
            135deg,
            #fff6f5,
            #fdf2f8
        );

    position:relative;

    overflow:hidden;
}

/* TEXT */

.step-label{

    font-size:30px;
    font-weight:800;

    letter-spacing:6px;

    color:#ff777b;

    writing-mode:vertical-rl;

    transform:rotate(180deg);

    text-transform:uppercase;
}

/* MOBILE */

@media(max-width:640px){

    .step-label{

        writing-mode:initial;

        transform:none;

        font-size:24px;

        letter-spacing:3px;
    }
}

.why-creators-section{

    position:relative;

    padding:90px 0;

    overflow:hidden;
}

/* MAIN TITLE */

.why-creators-section h2{

    font-size:56px;

    line-height:1.1;

    font-weight:800;

    color:#1b1b1b;

    margin-bottom:50px;

    position:relative;

    padding-left:24px;
}

.why-creators-section h2::before{

    content:"";

    position:absolute;

    left:0;
    top:8px;

    width:3px;
    height:72px;

    border-radius:20px;

    background:#111;
}

/* GRID */

.why-creators-grid{

    display:grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap:26px;
	padding-top: 18px;
}

/* CARD */

.why-card{

    position:relative;

    padding:34px;

    border-radius:28px;

    background:
        rgba(255,255,255,0.72);

    backdrop-filter:blur(14px);

    border:
        1px solid rgba(0,0,0,0.05);

    transition:all .35s ease;

    overflow:hidden;
}

/* HOVER */

.why-card:hover{

    transform:
        translateY(-6px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.08);
}

/* TOP GLOW */

.why-card::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:
        linear-gradient(
            90deg,
            #ff8e8e,
            #62d3b0,
            #7aa7ff
        );
}

/* HEADINGS */

.why-card h3{

    font-size:32px;

    line-height:1.2;

    font-weight:800;

    color:#171717;

    margin-bottom:16px;
}

/* TEXT */

.why-card p{

    font-size:18px;

    line-height:1.8;

    color:#5f5f5f;
}

/* MOBILE */

@media(max-width:991px){

    .why-creators-grid{

        grid-template-columns:1fr;
    }

    .why-creators-section h2{

        font-size:42px;
    }
}

@media(max-width:640px){

    .why-creators-section{

        padding:70px 0;
    }

    .why-creators-section h2{

        font-size:34px;

        padding-left:18px;

        margin-bottom:36px;
    }

    .why-creators-section h2::before{

        height:54px;
    }

    .why-card{

        padding:26px;
    }

    .why-card h3{

        font-size:26px;
    }

    .why-card p{

        font-size:16px;
    }
}