/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-menu-opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.pfy-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.pfy-logo img:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-menu {
    display: block;
}

.navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    display: block;
}

.menu-item > a:hover {
    color: #2563eb;
}

/* Dropdown Menus */
.menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 16px 0;
    z-index: 1001;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    display: block;
    padding: 8px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sub-menu a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
    margin-top: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content {
    padding: 16px;
}

.mobile-menu-content a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu-content a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 48px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 48px;
    margin-top: 50px;
}

/* ============================================
   CONTENT CARD — Typography & Rich Content
   ============================================ */

/* Paragrafe */
.content-card p {
    margin: 0 0 20px 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

.content-card p:last-child {
    margin-bottom: 0;
}

/* Headings — ierarhie vizuală clară */
.content-card h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 32px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.content-card h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1f2937;
    margin: 48px 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 32px 0 12px 0;
    line-height: 1.4;
}

.content-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 8px 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
}

.content-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    margin: 20px 0 8px 0;
}

.content-card h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    margin: 16px 0 8px 0;
    font-style: italic;
}

/* Primul heading după card nu are margin-top */
.content-card > h2:first-child,
.content-card > h3:first-child,
.content-card > h4:first-child {
    margin-top: 0;
}

/* ============================================
   Liste
   ============================================ */

.content-card ul,
.content-card ol {
    margin: 0 0 20px 0;
    padding-left: 28px;
}

.content-card ul {
    list-style: none;
    padding-left: 0;
}

.content-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #374151;
    line-height: 1.7;
}

.content-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.content-card ol {
    list-style: decimal;
}

.content-card ol li {
    margin-bottom: 8px;
    color: #374151;
    line-height: 1.7;
    padding-left: 6px;
}

.content-card ol li::marker {
    color: #2563eb;
    font-weight: 600;
}

/* Liste imbricate */
.content-card ul ul,
.content-card ol ol,
.content-card ul ol,
.content-card ol ul {
    margin-top: 8px;
    margin-bottom: 4px;
}

.content-card ul ul li::before {
    width: 4px;
    height: 4px;
    background: transparent;
    border: 2px solid #6b7280;
    top: 11px;
}

/* ============================================
   Tabele
   ============================================ */

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.content-card thead {
    background: #f1f5f9;
}

.content-card thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.content-card tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.content-card tbody tr:last-child {
    border-bottom: none;
}

.content-card tbody tr:hover {
    background: #f8fafc;
}

.content-card tbody td {
    padding: 12px 16px;
    color: #374151;
    vertical-align: top;
    line-height: 1.6;
}

.content-card tfoot td {
    padding: 12px 16px;
    font-weight: 600;
    color: #1f2937;
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

/* Tabel cu dungi (adaugă clasa .table-striped) */
.content-card table.table-striped tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* ============================================
   Elemente inline
   ============================================ */

.content-card strong,
.content-card b {
    font-weight: 600;
    color: #111827;
}

.content-card em,
.content-card i {
    font-style: italic;
    color: #4b5563;
}

.content-card a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.content-card a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

/* Cod inline */
.content-card code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Consolas, monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Bloc de cod */
.content-card pre {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid #334155;
}

.content-card pre code {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 14px;
    padding: 0;
    border-radius: 0;
}

/* ============================================
   Blockquote
   ============================================ */

.content-card blockquote {
    margin: 24px 0;
    padding: 16px 20px 16px 24px;
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    border-radius: 0 8px 8px 0;
    color: #1e40af;
    font-style: italic;
    line-height: 1.7;
}

.content-card blockquote p {
    color: inherit;
    margin: 0;
}

/* ============================================
   Separator
   ============================================ */

.content-card hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 40px 0;
}

/* ============================================
   Imagini
   ============================================ */

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.content-card figure {
    margin: 24px 0;
    text-align: center;
}

.content-card figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}

/* ============================================
   Badges / etichete inline utile
   ============================================ */

.content-card .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.content-card .badge-blue   { background: #dbeafe; color: #1d4ed8; }
.content-card .badge-green  { background: #dcfce7; color: #15803d; }
.content-card .badge-red    { background: #fee2e2; color: #b91c1c; }
.content-card .badge-yellow { background: #fef9c3; color: #a16207; }

/* ============================================
   Callout boxes
   ============================================ */

.content-card .callout {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid transparent;
}

.content-card .callout-info    { background: #eff6ff; border-color: #93c5fd; color: #1e40af; }
.content-card .callout-success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.content-card .callout-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.content-card .callout-danger  { background: #fff1f2; border-color: #fca5a5; color: #991b1b; }

.content-card .callout p {
    margin: 0;
    color: inherit;
}

/* ============================================
   Placeholder notice (existent, păstrat)
   ============================================ */

.placeholder-notice {
    margin-top: 48px;
    padding: 24px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    border-radius: 8px;
}

.placeholder-notice p {
    color: #1e40af;
    text-align: center;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   Footer Styles
   ============================================ */

.pfy-site-footer {
    background: #1f2937;
    color: white;
}

.pfy-footer-top {
    padding: 64px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 48px;
}

.footer-main {
    max-width: none;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    margin-bottom: 24px;
}

.footer-description p {
    color: #d1d5db;
    line-height: 1.6;
}

.pfy-contact-info ul {
    list-style: none;
    margin-bottom: 24px;
}

.pfy-contact-info li {
    margin-bottom: 12px;
}

.pfy-contact-info a {
    color: #d1d5db;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.pfy-contact-info a:hover {
    color: white;
}

.pfy-contact-info i {
    color: #3b82f6;
    margin-right: 12px;
    width: 16px;
}

.pfy-global-social ul {
    display: flex;
    gap: 16px;
    list-style: none;
}

.pfy-global-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.pfy-global-social li:nth-child(1) a { background: #1877f2; }
.pfy-global-social li:nth-child(2) a { background: #1da1f2; }
.pfy-global-social li:nth-child(3) a { background: #0077b5; }

.pfy-global-social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-tools .tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tools-grid a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.tools-grid a:hover {
    color: white;
}

.pfy-footer-bottom {
    border-top: 1px solid #374151;
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-bottom-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
}

.footer-bottom-nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-nav a:hover {
    color: white;
}

.footer-copyright p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-tools {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .content-card {
        padding: 32px 24px;
    }

    .content-card h1 {
        font-size: 1.875rem;
    }

    .content-card h2 {
        font-size: 1.375rem;
        margin-top: 36px;
    }

    .content-card h3 {
        font-size: 1.125rem;
    }

    /* Tabele responsive — scroll orizontal */
    .content-card table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-nav ul {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .content-card {
        padding: 24px 16px;
    }

    .content-card h1 {
        font-size: 1.625rem;
    }

    .pfy-footer-top {
        padding: 48px 0;
    }
}