/* ============================================
   3 COLOR TOAST NOTIFICATION SYSTEM - CSS
   Colors: Green, Red, Yellow
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
    color: #1f2937;
}*/

/* ============================================
   TOAST CONTAINER
   ============================================ */

#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    #toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* ============================================
   TOAST BASE STYLES
   ============================================ */

.toast {
    pointer-events: all;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 320px;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.2s ease;
    border-left: 4px solid;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15), 
                0 15px 15px -5px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(0, 0, 0, 0.05);
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================
   TOAST ANIMATIONS
   ============================================ */

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
}

/* ============================================
   TOAST COLOR VARIANTS
   ============================================ */

/* SUCCESS - GREEN */
.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.toast-success .toast-icon svg {
    stroke: #10b981;
}

/* ERROR - RED */
.toast-error {
    border-left-color: #ef4444;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.toast-error .toast-icon svg {
    stroke: #ef4444;
}

/* WARNING - YELLOW */
.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.toast-warning .toast-icon svg {
    stroke: #f59e0b;
}

/* ============================================
   TOAST ICON
   ============================================ */

.toast-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2.5;
}

/* ============================================
   TOAST CONTENT
   ============================================ */

.toast-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.25rem;
}

.toast-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================
   TOAST CLOSE BUTTON
   ============================================ */

.toast-close {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    color: #9ca3af;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.toast-close:hover {
    color: #111827;
    background: #f3f4f6;
}

.toast-close:active {
    transform: scale(0.9);
}

.toast-close svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

/* ============================================
   DEMO PAGE STYLES
   ============================================ */

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.demo-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.demo-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.demo-header p {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
}

.demo-content {
    padding: 2.5rem 2rem;
}

.demo-footer {
    background: #f9fafb;
    padding: 1.5rem 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    border-top: 1px solid #e5e7eb;
}

/* ============================================
   DEMO SECTIONS
   ============================================ */

.demo-content > div {
    margin-bottom: 3rem;
}

.demo-content > div:last-child {
    margin-bottom: 0;
}

.demo-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.demo-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}*/

.btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 1.125rem;
    height: 1.125rem;
    stroke-width: 2;
}

.btn-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.btn-green:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
}

.btn-red:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-yellow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
}

.btn-yellow:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/*.btn-outline {
    background: white;
    color: #667eea;
    border-color: #667eea;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}*/

/* ============================================
   CODE BLOCKS
   ============================================ */

.code-section,
.advanced-section {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.code-block {
    margin-bottom: 1.5rem;
}

.code-block:last-child {
    margin-bottom: 0;
}

pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

code {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* ============================================
   FEATURES LIST
   ============================================ */

.features-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: 12px;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.features-list li {
    font-size: 0.9375rem;
    color: #78350f;
    line-height: 1.6;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

/* ============================================
   USAGE STEPS
   ============================================ */

.usage-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1.5rem;
    border-radius: 12px;
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: white;
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content {
    flex: 1;
}

.step-content pre {
    margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .demo-header {
        padding: 2rem 1.5rem;
    }

    .demo-header h1 {
        font-size: 2rem;
    }

    .demo-header p {
        font-size: 1rem;
    }

    .demo-content {
        padding: 2rem 1.5rem;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .demo-header h1 {
        font-size: 1.75rem;
    }

    .demo-content h2 {
        font-size: 1.25rem;
    }

    pre {
        font-size: 0.8125rem;
        padding: 0.875rem 1rem;
    }
}
