/* ================================
   INKPROWL WEBSITE CSS
   PART 1/4
   ================================ */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* Links */
a {
    text-decoration: none;
    color: inherit;
}

/* Images */
img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* ================================
   HEADER
   ================================ */

header {
    width: 100%;
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}


/* Logo */

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
}

.logo img {
    height: 50px;
    width: auto;
}


/* ================================
   NAVIGATION
   ================================ */

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: #fff;
    font-size: 16px;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: #ff9800;
}


/* Mobile Menu Button */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
}


/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
}


/* Hero Button */

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff9800;
    color: #fff;
    border-radius: 30px;
    font-size: 17px;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #e68900;
}


/* ================================
   SECTION TITLE
   ================================ */

.section-title {
    text-align: center;
    margin: 50px 0 30px;
}

.section-title h2 {
    font-size: 32px;
    color: #111;
}

.section-title p {
    color: #666;
    margin-top: 10px;
}
/* ================================
   INKPROWL WEBSITE CSS
   PART 2/4
   Categories, Cards, Gallery
   ================================ */


/* ================================
   CATEGORY SECTION
   ================================ */

.categories {
    padding: 40px 0;
    background: #f8f8f8;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}


.category-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 25px 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    cursor: pointer;
}


.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


.category-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: auto;
    margin-bottom: 15px;
}


.category-card h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 8px;
}


.category-card p {
    font-size: 14px;
    color: #666;
}



/* ================================
   IMAGE GALLERY
   ================================ */


.gallery-section {
    padding: 50px 0;
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
}


.image-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}


.image-card:hover {
    transform: translateY(-7px);
}


.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.4s ease;
}


.image-card img:hover {
    transform: scale(1.05);
}


.image-info {
    padding: 15px;
}


.image-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}


.image-info p {
    color: #777;
    font-size: 14px;
}



/* ================================
   SINGLE IMAGE PAGE
   ================================ */


.single-image-page {
    padding: 50px 0;
}


.single-image-container {
    max-width: 900px;
    margin: auto;
    text-align: center;
}


.single-image-container img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


/* Image Zoom */

.zoom-image {
    overflow: hidden;
    border-radius: 15px;
}


.zoom-image img {
    transition: transform 0.5s ease;
}


.zoom-image:hover img {
    transform: scale(1.15);
}



/* ================================
   IMAGE DETAILS
   ================================ */


.image-details {
    margin-top: 30px;
    text-align: left;
}


.image-details h1 {
    font-size: 35px;
    margin-bottom: 15px;
}


.image-details .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}


.tag {
    background: #ff9800;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
}



/* ================================
   SEARCH AREA
   ================================ */


.search-box {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    display: flex;
}


.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}


.search-box button {
    padding: 14px 25px;
    border: none;
    background: #ff9800;
    color: white;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
}


.search-box button:hover {
    background: #e68900;
}
/* ================================
   INKPROWL WEBSITE CSS
   PART 3/4
   Buttons, Social, Ads, Footer
   ================================ */


/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #111;
    color: #fff;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}


.btn:hover {
    background: #ff9800;
}


.btn-primary {
    background: #ff9800;
}


.btn-primary:hover {
    background: #e68900;
}



/* ================================
   SOCIAL SHARE SECTION
   ================================ */

.social-share {
    margin: 35px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}


.social-share h3 {
    width: 100%;
    margin-bottom: 10px;
}


.social-btn {
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}


.social-btn:hover {
    transform: translateY(-3px);
}


.facebook {
    background: #1877f2;
}


.twitter {
    background: #000;
}


.whatsapp {
    background: #25d366;
}


.telegram {
    background: #0088cc;
}



/* ================================
   ADS SECTION
   ================================ */


.ad-container {
    width: 100%;
    min-height: 100px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
}


.ad-container iframe,
.ad-container img {
    max-width: 100%;
}



/* ================================
   RELATED IMAGES
   ================================ */


.related-section {
    margin-top: 50px;
}


.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 20px;
}


.related-card {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.related-card img {
    width:100%;
    height:180px;
    object-fit:cover;
}



/* ================================
   FOOTER
   ================================ */


footer {
    background:#111;
    color:white;
    padding:50px 0 20px;
    margin-top:50px;
}


.footer-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}


footer h3 {
    margin-bottom:15px;
}


footer p,
footer a {
    color:#ccc;
    font-size:14px;
}


footer a:hover {
    color:#ff9800;
}


.footer-bottom {
    text-align:center;
    border-top:1px solid #333;
    margin-top:30px;
    padding-top:20px;
}



/* ================================
   ADMIN PANEL STYLE
   ================================ */


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


.admin-card {
    background:#fff;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    margin-bottom:25px;
}


.admin-card h2 {
    margin-bottom:20px;
}


.admin-input,
.admin-textarea,
.admin-select {
    width:100%;
    padding:12px 15px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:8px;
}


.admin-textarea {
    min-height:150px;
}


.admin-table {
    width:100%;
    border-collapse:collapse;
}


.admin-table th,
.admin-table td {
    padding:12px;
    border-bottom:1px solid #ddd;
    text-align:left;
}


.admin-action {
    padding:8px 15px;
    border-radius:20px;
    background:#ff9800;
    color:white;
    border:none;
    cursor:pointer;
}



/* ================================
   LOADING EFFECT
   ================================ */


.loader {
    width:45px;
    height:45px;
    border:5px solid #ddd;
    border-top:5px solid #ff9800;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:auto;
}


@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}
/* ================================
   INKPROWL WEBSITE CSS
   PART 4/4
   Responsive Design & Final Polish
   ================================ */


/* ================================
   MOBILE RESPONSIVE DESIGN
   ================================ */


@media (max-width: 768px) {


    .container {
        width: 92%;
    }


    /* Header */

    .header-container {
        padding:15px;
    }


    .logo {
        font-size:24px;
    }


    .menu-toggle {
        display:block;
    }


    nav {
        display:none;
        width:100%;
    }


    nav.active {
        display:block;
    }


    nav ul {
        flex-direction:column;
        background:#111;
        padding:20px;
        gap:15px;
    }


    nav ul li a {
        display:block;
        padding:8px 0;
    }



    /* Hero */

    .hero {
        min-height:350px;
    }


    .hero h1 {
        font-size:32px;
    }


    .hero p {
        font-size:16px;
    }



    /* Section */

    .section-title h2 {
        font-size:26px;
    }



    /* Gallery */

    .image-grid {
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }


    .image-card img {
        height:180px;
    }



    /* Categories */

    .category-grid {
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }


    .category-card {
        padding:15px 10px;
    }


    .category-card img {
        width:60px;
        height:60px;
    }



    /* Single Image Page */

    .image-details h1 {
        font-size:26px;
    }


    .single-image-container img {
        max-height:500px;
    }



    /* Social Buttons */

    .social-share {
        flex-direction:column;
        align-items:stretch;
    }


    .social-btn {
        text-align:center;
    }



    /* Search */

    .search-box {
        flex-direction:column;
    }


    .search-box input {
        border-radius:30px;
        margin-bottom:10px;
    }


    .search-box button {
        border-radius:30px;
    }

}




/* ================================
   SMALL MOBILE DEVICES
   ================================ */


@media (max-width:480px) {


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


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


    .hero h1 {
        font-size:28px;
    }


    .hero-btn {
        padding:10px 22px;
    }


    footer {
        text-align:center;
    }

}



/* ================================
   IMAGE PREVIEW OPTIMIZATION
   ================================ */


.image-preview {
    width:100%;
    overflow:hidden;
    border-radius:15px;
    background:#f4f4f4;
}


.image-preview img {
    width:100%;
    height:auto;
    object-fit:contain;
    transition:transform .4s ease;
}


.image-preview img:hover {
    transform:scale(1.08);
}



/* ================================
   OPEN GRAPH SOCIAL PREVIEW IMAGE
   ================================ */


.social-preview-image {
    width:1200px;
    height:630px;
    object-fit:cover;
    display:none;
}



/* ================================
   FADE ANIMATION
   ================================ */


.fade-in {
    animation:fadeIn .8s ease-in-out;
}


@keyframes fadeIn {

    from {
        opacity:0;
        transform:translateY(20px);
    }


    to {
        opacity:1;
        transform:translateY(0);
    }

}



/* ================================
   SMOOTH HOVER EFFECTS
   ================================ */


.card-hover {
    transition:.3s ease;
}


.card-hover:hover {
    transform:translateY(-5px);
}



/* ================================
   DARK MODE READY
   ================================ */


.dark-mode {
    background:#121212;
    color:#eee;
}


.dark-mode .image-card,
.dark-mode .category-card,
.dark-mode .admin-card {
    background:#1e1e1e;
    color:white;
}


.dark-mode footer {
    background:#000;
}



/* ================================
   SECURITY / HIDE EMPTY CONTENT
   ================================ */


.hidden {
    display:none !important;
}


.visible {
    display:block !important;
}
