@import 'tailwindcss';

@font-face {
    font-family: 'SwissNow';
    src: url('/fonts/SwissNow-Regular.woff2') format('woff2'); /* Path to your font file */
    font-weight: 400; /* 400 is 'normal' */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SwissNow';
    src: url('/fonts/SwissNow-Bold.woff2') format('woff2'); /* Path to your bold font file */
    font-weight: 700; /* 700 is 'bold' */
    font-style: normal;
    font-display: swap;
}

@plugin 'tailwindcss-animate';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@custom-variant dark (&:is(.dark *));

@theme {
    --font-sans:
        'SwissNow', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';

    --radius-lg: var(--radius);
    --radius-md: calc(var(--radius) - 2px);
    --radius-sm: calc(var(--radius) - 4px);

    --color-background: var(--background);
    --color-foreground: var(--foreground);

    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);

    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);

    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);

    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);

    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);

    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);

    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);

    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);

    --color-chart-1: var(--chart-1);
    --color-chart-2: var(--chart-2);
    --color-chart-3: var(--chart-3);
    --color-chart-4: var(--chart-4);
    --color-chart-5: var(--chart-5);

    --color-sidebar: var(--sidebar);
    --color-sidebar-foreground: var(--sidebar-foreground);
    --color-sidebar-primary: var(--sidebar-primary);
    --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
    --color-sidebar-accent: var(--sidebar-accent);
    --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
    --color-sidebar-border: var(--sidebar-border);
    --color-sidebar-ring: var(--sidebar-ring);
}

:root {
    /* --- Veed.io Theme --- */
    
    /* Main Background: A very dark, slightly blue-gray */
    --background: oklch(97% .001 286.4);

    /* Main Text/Foreground: Off-white for readability */
    --foreground: 243 244 246; /* Tailwind's gray-100 */

    /* Card/Surface Background: A slightly lighter dark gray for contrast */
    --card: 31 34 46;

    --card-light: 255 255 255; /* White background for cards */
    --card-light-foreground: 17 24 39; /* Dark text for cards */
    --card-light-muted: 107 114 128; /* Gray text for card subtitles */
    --card-light-border: 229 231 235; /* Light gray border for cards */

    /* Card Text: Same as main text */
    --card-foreground: 243 244 246;

    /* Primary Action Color: The vibrant blue/purple */
    --primary: 128 120 253; /* Tailwind's indigo-500 */
    --primary-foreground: 255 255 255; /* White text for the primary button */

    /* Muted Text: A softer gray for subtitles, dates, etc. */
    --muted: 156 163 175; /* Tailwind's gray-400 */
    --muted-foreground: 156 163 175;

    /* Borders: A subtle, slightly lighter gray than the background */
    --border: 55 65 81; /* Tailwind's gray-700 */

    /* Input Fields */
    --input: 55 65 81;
    --ring: 99 102 241; /* Use the primary color for focus rings */

    /* Accent color for hover states, etc. */
    --accent: 42 46 59;
    --accent-foreground: 243 244 246;

    /* You can leave the rest or update them as needed */
    --destructive: 239 68 68; /* A standard red for destructive actions */
    --destructive-foreground: 255 255 255;
    
    --radius: 0.5rem; /* A slightly more rounded corner style */

    --footer-background: 50 50 50;  /* #323232 */
    --footer-text: 165 167 173;   /* #a5a7ad */
    --footer-hover: 144 121 251;
}


@layer base {
    * {
        @apply border-border;
    }

    body {
        @apply bg-background text-foreground;
    }
}

.post-content {
    color: rgb(var(--text-muted)); /* Default text color for paragraphs */
    font-size: 1.125rem; /* Equivalent to text-lg */
    line-height: 1.75rem;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: rgb(var(--text-base));
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    line-height: normal;
}

.post-content h1 {
    font-size: 2.25em;
}

.post-content h2 {
    font-size: 1.75em;
}

.post-content h3 {
    font-size: 1.25em;
}

/* Paragraphs */
.post-content p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

/* Links */
.post-content a {
    color: rgb(var(--primary));
    text-decoration: underline;
    transition: color 0.2s;
}

.post-content a:hover {
    color: rgb(var(--primary) / 0.8); /* Make it slightly transparent on hover */
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.75em; /* Indentation for the list */
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Bold text */
.post-content strong {
    color: rgb(var(--text-base));
    font-weight: 600;
}
