:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --medium-gray: #94a3b8;
    --dark: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-gray);
}

.stats-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    color: var(--dark);
    border: 1px solid var(--light-gray);
}

.stat-badge i {
    color: var(--primary);
}

/* Hero Layout */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Image Section */
.image-section {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    height: 560px;
    box-shadow: var(--shadow-xl);
}

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    z-index: 1;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.main-image {
    width: 280px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--white);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

/* Content Section */
.content-section {
    padding: 10px 0;
}

.prompt-title-main {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
}

.prompt-title-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Tags Section */
.tags-section {
    margin-bottom: 35px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.section-heading i {
    color: var(--primary);
    font-size: 1.2rem;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.keyword-chip {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.keyword-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ai-tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ai-tool-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.ai-tool-chip:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ai-tool-chip i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Action Buttons */
.action-section {
    margin-bottom: 40px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 640px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 15px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.action-btn i {
    font-size: 1.5rem;
    color: var(--white) !important;
    z-index: 2;
}

.action-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    color: white;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.share-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.info-btn {
    background: linear-gradient(135deg, var(--accent), #d97706);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-btn:active {
    transform: translateY(-1px);
}

/* How to Use Card */
.guide-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
}

.guide-icon i {
    color: var(--white);
}

.guide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    background: var(--light);
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.step-desc {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Prompt Text Section */
.prompt-section {
    margin-bottom: 50px;
}

.prompt-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-gray);
}

.prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.prompt-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt-title i {
    color: var(--primary);
    font-size: 1.4rem;
}

.prompt-content {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 1.05rem;
    line-height: 1.7;
    word-break: break-word;
    color: var(--dark);
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    max-height: 400px;
    overflow-y: auto;

}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--medium-gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--dark);
}

.modal-body {
    padding: 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
}

.modal-body ol {
    padding-left: 20px;
    margin: 15px 0;
}

.modal-body li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--success), #34d399);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.error {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.toast i {
    font-size: 1.1rem;
    color: white;
}

.toast span {
    color: white;
}

/* Loading Animation */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Share Menu */
.share-menu {
    display: none;
    position: fixed;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 15px;
    z-index: 1002;
    min-width: 180px;
    border: 1px solid var(--light-gray);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.share-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.share-option:hover {
    background: var(--light);
}

.share-option i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    main {
        padding-top: 20px;
    }

    .main-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px 0;
        margin-bottom: 30px;
    }

    .stats-container {
        width: 100%;
        justify-content: space-between;
    }

    .prompt-title-main {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .image-section {
        height: 400px;
    }

    .main-image {
        width: 200px;
        height: 360px;
    }

    .action-buttons {
        gap: 12px;
    }

    .action-btn {
        padding: 18px 12px;
        min-height: 80px;
    }

    .action-btn i {
        font-size: 1.3rem;
    }

    .action-btn span {
        font-size: 0.85rem;
    }

    .prompt-container,
    .guide-card {
        padding: 25px;
    }

    .guide-title {
        font-size: 1.3rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-title-large {
        font-size: 1.7rem;
        margin-bottom: 25px;
    }

    .prompts_grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .prompt-title-main {
        font-size: 1.7rem;
    }

    .image-section {
        height: 350px;
    }

    .main-image {
        width: 180px;
        height: 320px;
    }

    .keyword-chip,
    .ai-tool-chip {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-layout {
        gap: 30px;
    }
}

/* Scrollbar Styling */
.prompt-content::-webkit-scrollbar {
    width: 6px;
}

.prompt-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.prompt-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.prompt-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Fix for icons */
.fa-copy,
.fa-share-alt,
.fa-whatsapp,
.fa-info-circle {
    color: var(--white) !important;
}

/* Button Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}