/* LOFT Styles - Inspired by lots-project.com */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
}

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

header {
    margin-bottom: 30px;
    padding: 0;
}

.header-layout {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    border-radius: 50%;
    z-index: -1;
}

.main-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.header-content {
    flex: 1;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
}

.header-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    border-radius: 8px;
    z-index: -1;
}

.logo-section {
    margin-bottom: 16px;
}


.logo-text h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    margin: 0;
    letter-spacing: -2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.project-title h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    letter-spacing: -0.5px;
}

.description {
    margin-top: 16px;
}

.description p {
    font-size: 1rem;
    color: #555;
    font-weight: 400;
    margin: 6px 0;
    line-height: 1.4;
}

.tagline {
    font-style: italic;
    color: #666 !important;
    font-size: 0.9rem !important;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

#search {
    flex: 1;
    min-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
}

#search:focus {
    outline: none;
    border-color: #666;
}

#sort-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f5f5f5;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

#sort-btn:hover {
    background: #eee;
}

#count {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.table-container {
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9rem;
}

thead {
    background: #f8f9fa;
    border-bottom: 2px solid #ddd;
}

th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
    border-right: 1px solid #eee;
}

th:last-child {
    border-right: none;
}

tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.1s;
}

tbody tr:hover {
    background: #f8f9fa;
}

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

td {
    padding: 12px 16px;
    vertical-align: top;
    border-right: 1px solid #eee;
}

td:last-child {
    border-right: none;
}

.platform-name {
    font-weight: 500;
    color: #000;
}

.platform-url {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
}

.platform-url:hover {
    text-decoration: underline;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    background: #f0f0f0;
    color: #333;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.tag:hover {
    background: #e0e0e0;
    border-color: #999;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tag.free-tier {
    background: #e8f5e8;
    color: #2e7d2e;
    border-color: #c3e6c3;
}

.tag.free-tier:hover {
    background: #d4ecd4;
    border-color: #a5d6a5;
}

.tag.trial {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.tag.trial:hover {
    background: #ffeaa0;
    border-color: #ffd93d;
}

.tag.developer {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.tag.developer:hover {
    background: #bbdefb;
    border-color: #90caf9;
}

.tag.sso {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #ce93d8;
}

.tag.sso:hover {
    background: #e1bee7;
    border-color: #ab47bc;
}

.tag.phishing {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}

.tag.phishing:hover {
    background: #ffcdd2;
    border-color: #e57373;
}

.tag.download {
    background: #fff3e0;
    color: #ef6c00;
    border-color: #ffcc02;
}

.tag.download:hover {
    background: #ffe0b2;
    border-color: #ffb74d;
}

.tag.exfiltration {
    background: #e0f2f1;
    color: #00695c;
    border-color: #80cbc4;
}

.tag.exfiltration:hover {
    background: #b2dfdb;
    border-color: #4db6ac;
}

.tag.cc {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #a5d6a5;
}

.tag.cc:hover {
    background: #c8e6c9;
    border-color: #81c784;
}

.tag.unverified {
    background: #f5f5f5;
    color: #666;
    border-color: #ccc;
    border-style: dashed;
}

.tag.unverified:hover {
    background: #e9ecef;
    border-color: #999;
}

.category-info {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    padding: 2px 6px;
    background: #f8f9fa;
    border-radius: 3px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid #e9ecef;
}

.category-info:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
}

/* Expandable Row Styles */
.platform-row {
    transition: background-color 0.1s ease;
}

.platform-row:hover {
    background: #f8f9fa !important;
}

.platform-row.expanded {
    background: #f0f7ff;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-indicator {
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.2s ease;
    user-select: none;
    width: 12px;
    text-align: center;
}

.platform-info {
    flex: 1;
}

.platform-details {
    background: #fafbfc;
    border-top: 1px solid #e1e4e8;
}

.details-content {
    padding: 12px 24px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.detail-row {
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row strong {
    min-width: 140px;
    color: #333;
    font-weight: 600;
}

.detail-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.8rem;
}

.detail-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.85rem;
}

footer a {
    color: #0066cc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    /* Mobile header adjustments */
    .header-content {
        padding: 16px;
    }
    
    .header-layout {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .main-logo {
        width: 70px;
        height: 70px;
    }
    
    .logo-text h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .project-title h2 {
        font-size: 1.1rem;
    }
    
    .description p {
        font-size: 0.9rem;
    }
    
    .tagline {
        font-size: 0.8rem !important;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    #search {
        min-width: unset;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 12px;
    }
    
    .tags {
        gap: 2px;
    }
    
    .tag {
        font-size: 0.7rem;
    }
    
    /* Mobile expandable row adjustments */
    .platform-header {
        gap: 6px;
    }
    
    .expand-indicator {
        font-size: 0.6rem;
        width: 10px;
    }
    
    .details-content {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 8px;
    }
    
    .detail-row strong {
        min-width: unset;
    }
    
    .category-info {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
}