/* ========================================
   Moner Mukure - Modern Custom CSS Design System
   No external CSS frameworks - Pure custom CSS
   ======================================== */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Primary Colors */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;

    /* Secondary Colors */
    --color-secondary: #ec4899;
    --color-secondary-dark: #db2777;
    --color-secondary-light: #f472b6;

    /* Accent Colors */
    --color-accent: #f59e0b;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Neutral Colors */
    --color-dark: #1e293b;
    --color-gray: #64748b;
    --color-light: #f1f5f9;
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #13f1fc 0%, #0470dc 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sunset: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 10px 25px -5px rgba(99, 102, 241, 0.3);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-family: var(--font-heading);
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: var(--spacing-md);
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }

    h5 {
        font-size: 1.125rem;
    }

    h6 {
        font-size: 1rem;
    }

    p {
        margin-bottom: var(--spacing-md);
    }

    a {
        color: var(--color-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    a:hover {
        color: var(--color-primary-dark);
    }

    strong {
        font-weight: 600;
    }

    small {
        font-size: 0.875rem;
    }

    /* ========================================
   Layout System (Container & Grid)
   ======================================== */
    .container {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }

    @media (min-width: 768px) {
        .container {
            padding-left: var(--spacing-lg);
            padding-right: var(--spacing-lg);
        }
    }

    /* ========================================
   Header & Navigation
   ======================================== */
    header.container {
        background: rgba(255, 255, 255, 0.95);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        margin-top: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-lg);
        position: sticky;
        top: var(--spacing-md);
        z-index: 100;
        backdrop-filter: blur(10px);
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--spacing-md);
    }

    nav ul {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        list-style: none;
        margin: 0;
        padding: 0;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--color-dark);
        font-weight: 500;
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
        position: relative;
    }

    nav ul li a:hover {
        color: var(--color-primary);
        background: rgba(99, 102, 241, 0.1);
        transform: translateY(-2px);
    }

    nav ul li a img {
        height: 40px;
        width: auto;
    }

    nav ul li strong {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }

    /* ========================================
   Main Content
   ======================================== */
    main.container {
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-2xl);
    }

    /* ========================================
   Article & Section
   ======================================== */
    article {
        margin-bottom: var(--spacing-lg);
    }

    article header {
        margin-bottom: var(--spacing-md);
    }

    article footer {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
        border-top: 1px solid #e2e8f0;
    }

    section {
        margin-bottom: var(--spacing-xl);
    }

    /* ========================================
   Card Styles
   ======================================== */
    .card {
        background: var(--color-white);
        border-radius: var(--radius-xl);
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
        border-color: var(--color-primary-light);
    }

    .card-gradient {
        background: var(--color-white);
        border-radius: var(--radius-xl);
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-lg);
        position: relative;
        overflow: hidden;
    }

    .card-gradient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
    }

    .card-contrast {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
        border-radius: var(--radius-lg);
        padding: var(--spacing-lg);
        border: 2px solid transparent;
        background-clip: padding-box;
        position: relative;
        transition: all 0.3s ease;
    }

    .card-contrast::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--radius-lg);
        padding: 2px;
        background: var(--gradient-primary);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: xor;
        z-index: -1;
    }

    .card-contrast:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-colored);
    }

    .contrast {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        border-left: 3px solid var(--color-primary);
    }

    /* ========================================
   Buttons
   ======================================== */
    button,
    [role="button"],
    input[type="submit"],
    input[type="button"],
    input[type="reset"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        padding: var(--spacing-md) var(--spacing-xl);
        border-radius: var(--radius-full);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        white-space: nowrap;
    }

    button[type="submit"],
    .btn-primary {
        background: var(--gradient-primary);
        color: white;
        box-shadow: var(--shadow-md);
    }

    button[type="submit"]:hover,
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }

    button.secondary,
    .btn-secondary {
        background: var(--gradient-secondary);
        color: white;
        box-shadow: var(--shadow-md);
    }

    button.secondary:hover,
    .btn-secondary:hover {
        background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
        transform: translateY(-2px);
        box-shadow: var(--shadow-xl);
    }

    .btn-outline,
    button.outline,
    a[role="button"].outline {
        background: transparent;
        border: 2px solid var(--color-primary);
        color: var(--color-primary);
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-outline:hover,
    button.outline:hover,
    a[role="button"].outline:hover {
        background: var(--color-primary);
        color: white;
        transform: translateY(-2px);
    }

    .btn-approve {
        background: var(--color-success);
        color: white;
        border: none;
    }

    .btn-approve:hover {
        background: #059669;
    }

    .btn-delete {
        background: var(--color-danger);
        color: white;
        border: none;
    }

    .btn-delete:hover {
        background: #dc2626;
    }

    button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* ========================================
   Form Styles
   ======================================== */
    label {
        font-weight: 600;
        color: var(--color-dark);
        margin-bottom: var(--spacing-sm);
        display: block;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="url"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        width: 100%;
        border: 2px solid #e2e8f0;
        border-radius: var(--radius-lg);
        padding: var(--spacing-md);
        font-family: var(--font-body);
        font-size: 1rem;
        transition: all 0.3s ease;
        background: white;
        margin-bottom: var(--spacing-md);
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="password"]:focus,
    input[type="search"]:focus,
    input[type="url"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        outline: none;
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: auto;
        margin-right: var(--spacing-sm);
    }

    textarea {
        min-height: 120px;
        resize: vertical;
    }

    ::placeholder {
        color: var(--color-gray);
        opacity: 0.7;
    }

    /* ========================================
   Alert/Success Messages
   ======================================== */
    .alert-success {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
        border-left: 4px solid var(--color-success);
        padding: var(--spacing-lg);
        border-radius: var(--radius-md);
        color: #065f46;
        font-weight: 500;
        box-shadow: var(--shadow-sm);
        margin-bottom: var(--spacing-md);
    }

    .alert-error {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
        border-left: 4px solid var(--color-danger);
        padding: var(--spacing-lg);
        border-radius: var(--radius-md);
        color: #991b1b;
        font-weight: 500;
        box-shadow: var(--shadow-sm);
        margin-bottom: var(--spacing-md);
    }

    /* ========================================
   Hero Section
   ======================================== */
    .hero {
        background: var(--gradient-primary);
        color: white;
        padding: var(--spacing-2xl);
        border-radius: var(--radius-xl);
        text-align: center;
        margin-bottom: var(--spacing-xl);
        box-shadow: var(--shadow-xl);
    }

    .hero h1 {
        color: white;
        -webkit-text-fill-color: white;
        margin-bottom: var(--spacing-md);
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
        opacity: 0.95;
        line-height: 1.8;
    }

    .hero a {
        color: white;
        text-decoration: underline;
        font-weight: 600;
    }

    .hero a:hover {
        opacity: 0.9;
    }

    /* ========================================
   Story Cards
   ======================================== */
    .story-card {
        background: white;
        border-radius: var(--radius-xl);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        transition: all 0.3s ease;
        border-left: 4px solid var(--color-primary);
    }

    .story-card:hover {
        transform: translateX(5px);
        box-shadow: var(--shadow-xl);
        border-left-color: var(--color-secondary);
    }

    .story-card h3 {
        margin-bottom: var(--spacing-sm);
    }

    .story-card h3 a {
        color: var(--color-dark);
        text-decoration: none;
        font-weight: 700;
        transition: color 0.3s ease;
    }

    .story-card h3 a:hover {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* ========================================
   Comment Section
   ======================================== */
    .comment-card {
        background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
        border-radius: var(--radius-lg);
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-md);
        border-left: 3px solid var(--color-accent);
        transition: all 0.3s ease;
    }

    .comment-card:hover {
        border-left-color: var(--color-primary);
        box-shadow: var(--shadow-md);
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        background: var(--gradient-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        margin-right: var(--spacing-md);
        flex-shrink: 0;
    }

    /* ========================================
   Admin Styles
   ======================================== */
    .admin-header {
        background: var(--gradient-primary);
        color: white;
        padding: var(--spacing-xl);
        border-radius: var(--radius-xl);
        margin-bottom: var(--spacing-xl);
    }

    .admin-header h1 {
        -webkit-text-fill-color: white;
        margin-bottom: 0;
    }

    .admin-badge {
        background: rgba(255, 255, 255, 0.2);
        padding: var(--spacing-xs) var(--spacing-md);
        border-radius: var(--radius-full);
        font-size: 0.875rem;
        display: inline-block;
        margin-left: var(--spacing-md);
    }

    .status-pending {
        border-left: 4px solid var(--color-warning);
    }

    .status-approved {
        border-left: 4px solid var(--color-success);
    }

    /* ========================================
   Footer
   ======================================== */
    footer.container {
        margin-top: var(--spacing-2xl);
        padding: var(--spacing-xl);
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }

    footer a {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 600;
    }

    /* ========================================
   Horizontal Rule
   ======================================== */
    hr {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
        margin: var(--spacing-xl) 0;
    }

    /* ========================================
   Lists
   ======================================== */
    ul,
    ol {
        margin-bottom: var(--spacing-md);
        padding-left: var(--spacing-xl);
    }

    li {
        margin-bottom: var(--spacing-sm);
    }

    /* ========================================
   Animations
   ======================================== */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-fade-in {
        animation: fadeIn 0.6s ease-out;
    }

    .animate-slide-up {
        animation: slideUp 0.5s ease-out;
    }

    /* ========================================
   Responsive Design
   ======================================== */
    @media (max-width: 768px) {
        h1 {
            font-size: 2rem;
        }

        h2 {
            font-size: 1.75rem;
        }

        h3 {
            font-size: 1.25rem;
        }

        .hero h1 {
            font-size: 1.875rem;
        }

        header.container {
            border-radius: var(--radius-md);
        }

        nav {
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        nav ul {
            flex-wrap: wrap;
            justify-content: center;
        }

        .card,
        .card-gradient {
            padding: var(--spacing-lg);
        }

        button[type="submit"],
        .btn-primary {
            width: 100%;
        }
    }

    /* ========================================
   Utility Classes
   ======================================== */
    .text-gradient {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .mb-1 {
        margin-bottom: var(--spacing-md);
    }

    .mb-2 {
        margin-bottom: var(--spacing-lg);
    }

    .mb-3 {
        margin-bottom: var(--spacing-xl);
    }

    .mt-1 {
        margin-top: var(--spacing-md);
    }

    .mt-2 {
        margin-top: var(--spacing-lg);
    }

    .mt-3 {
        margin-top: var(--spacing-xl);
    }

    .p-1 {
        padding: var(--spacing-md);
    }

    .p-2 {
        padding: var(--spacing-lg);
    }

    .p-3 {
        padding: var(--spacing-xl);
    }

    /* ========================================
   Share Buttons (for story detail page)
   ======================================== */
    .share-btn {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .status-pending {
        border-left: 4px solid var(--color-warning);
    }

    .status-approved {
        border-left: 4px solid var(--color-success);
    }

    /* ========================================
   Footer
   ======================================== */
    footer.container {
        margin-top: var(--spacing-2xl);
        padding: var(--spacing-xl);
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }

    footer a {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 600;
    }

    /* ========================================
   Horizontal Rule
   ======================================== */
    hr {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
        margin: var(--spacing-xl) 0;
    }

    /* ========================================
   Lists
   ======================================== */
    ul,
    ol {
        margin-bottom: var(--spacing-md);
        padding-left: var(--spacing-xl);
    }

    li {
        margin-bottom: var(--spacing-sm);
    }

    /* ========================================
   Animations
   ======================================== */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .animate-fade-in {
        animation: fadeIn 0.6s ease-out;
    }

    .animate-slide-up {
        animation: slideUp 0.5s ease-out;
    }

    /* ========================================
   Responsive Design
   ======================================== */
    @media (max-width: 768px) {
        h1 {
            font-size: 2rem;
        }

        h2 {
            font-size: 1.75rem;
        }

        h3 {
            font-size: 1.25rem;
        }

        .hero h1 {
            font-size: 1.875rem;
        }

        header.container {
            border-radius: var(--radius-md);
        }

        nav {
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        nav ul {
            flex-wrap: wrap;
            justify-content: center;
        }

        .card,
        .card-gradient {
            padding: var(--spacing-lg);
        }

        button[type="submit"],
        .btn-primary {
            width: 100%;
        }
    }

    /* ========================================
   Utility Classes
   ======================================== */
    .text-gradient {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .mb-1 {
        margin-bottom: var(--spacing-md);
    }

    .mb-2 {
        margin-bottom: var(--spacing-lg);
    }

    .mb-3 {
        margin-bottom: var(--spacing-xl);
    }

    .mt-1 {
        margin-top: var(--spacing-md);
    }

    .mt-2 {
        margin-top: var(--spacing-lg);
    }

    .mt-3 {
        margin-top: var(--spacing-xl);
    }

    .p-1 {
        padding: var(--spacing-md);
    }

    .p-2 {
        padding: var(--spacing-lg);
    }

    .p-3 {
        padding: var(--spacing-xl);
    }

    /* ========================================
   Share Buttons (for story detail page)
   ======================================== */
    .share-btn {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .share-btn:active {
        transform: translateY(0);
    }

    /* ========================================
   Pagination Styles
   ======================================== */
    nav[role="navigation"] {
        display: flex;
        justify-content: center;
        margin-top: var(--spacing-xl);
    }

    nav[role="navigation"] ul {
        display: flex;
        gap: var(--spacing-sm);
        list-style: none;
        padding: 0;
        margin: 0;
    }

    nav[role="navigation"] li {
        margin: 0;
    }

    nav[role="navigation"] a,
    nav[role="navigation"] span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: var(--spacing-sm) var(--spacing-md);
        border-radius: var(--radius-md);
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    nav[role="navigation"] a {
        background: white;
        color: var(--color-primary);
        border: 2px solid #e2e8f0;
    }

    nav[role="navigation"] a:hover {
        background: var(--color-primary);
        color: white;
        border-color: var(--color-primary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

    nav[role="navigation"] span[aria-current="page"] {
        background: var(--gradient-primary);
        color: white;
        border: 2px solid transparent;
        box-shadow: var(--shadow-md);
    }

    nav[role="navigation"] span[aria-disabled="true"] {
        background: #f1f5f9;
        color: var(--color-gray);
        border: 2px solid #e2e8f0;
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Pagination text (Showing X to Y of Z results) */
    p.text-sm {
        text-align: center;
        color: var(--color-gray);
        margin-top: var(--spacing-md);
    }